]> git.phdru.name Git - git-scripts.git/commitdiff
Minor refactoring: first echo then slow rsync
authorOleg Broytman <phd@phdru.name>
Fri, 14 Oct 2016 21:18:46 +0000 (00:18 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 14 Oct 2016 21:18:46 +0000 (00:18 +0300)
Rename LSTMP -> STMP (it's not a tmp for ls).

status-dirty-carefully

index 8e6f9ef99523916d5c6ffc7d33922bc625e7ad9a..26ab5bac7b013ccd3bf2d54d671999b4bb5ae265 100755 (executable)
@@ -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