From 8ed233c6fbdb88363fc54279c0a044413b137c54 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 10 Apr 2016 06:58:41 +0300 Subject: [PATCH] Fix: delete old files --- ls-dirty-carefully | 2 +- status-dirty-carefully | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ls-dirty-carefully b/ls-dirty-carefully index f723fd0..df5e362 100755 --- a/ls-dirty-carefully +++ b/ls-dirty-carefully @@ -6,7 +6,7 @@ cd "$HOME"/tmp && rm -rf ls-dirty-carefully.tmp && LSTMP="$HOME"/tmp/ls-dirty-carefully.tmp \ "$PROG_DIR"/do-all \ 'test "$g" = "$d/.git" || continue;' \ - 'rsync -aW --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ + 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ 'test -n "`git status -s`" && echo "$d"' && cd "$HOME"/tmp && exec rm -rf ls-dirty-carefully.tmp diff --git a/status-dirty-carefully b/status-dirty-carefully index bdbf901..065dac0 100755 --- a/status-dirty-carefully +++ b/status-dirty-carefully @@ -6,7 +6,7 @@ cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp && LSTMP="$HOME"/tmp/status-dirty-carefully.tmp \ "$PROG_DIR"/do-all \ 'test "$g" = "$d/.git" || continue;' \ - 'rsync -aW --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ + 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ 'test -n "`git status -s`" && echo "----- $d -----" &&' \ 'git status --branch' && -- 2.39.5