From: Oleg Broytman Date: Fri, 14 Oct 2016 21:18:46 +0000 (+0300) Subject: Minor refactoring: first echo then slow rsync X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f48b49196fe5c3f0bf50bb1c0fc4773d5bcd78b1;p=git-scripts.git Minor refactoring: first echo then slow rsync Rename LSTMP -> STMP (it's not a tmp for ls). --- 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