From f48b49196fe5c3f0bf50bb1c0fc4773d5bcd78b1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 15 Oct 2016 00:18:46 +0300 Subject: [PATCH] Minor refactoring: first echo then slow rsync Rename LSTMP -> STMP (it's not a tmp for ls). --- status-dirty-carefully | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/status-dirty-carefully b/status-dirty-carefully index 8e6f9ef..26ab5ba 100755 --- a/status-dirty-carefully +++ b/status-dirty-carefully @@ -3,11 +3,11 @@ cd "`dirname \"$0\"`" && prog_dir="`pwd`" && cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp && -LSTMP="$HOME"/tmp/status-dirty-carefully.tmp && +STMP="$HOME"/tmp/status-dirty-carefully.tmp && for d in `"$prog_dir"/ls-dirty` do - rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/`basename $d`" && - echo "----- $d -----" && git status --branch + echo "----- $d -----" && rsync -aW --del --protocol=28 "$d" "$STMP" && + cd "$STMP/`basename $d`" && git status --branch done && cd "$HOME"/tmp && exec rm -rf status-dirty-carefully.tmp -- 2.39.5