Rename LSTMP -> STMP (it's not a tmp for ls).
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