From 41ea14fad3d8501191886b656c0f7bca6680a406 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 15:12:36 +0300 Subject: [PATCH] Rename ls-dirty-carefully to ls-status-carefully Change variable $PROG_DIR => $prog_dir. Use long option. --- ls-status-carefully | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ls-status-carefully b/ls-status-carefully index df5e362..eca5999 100755 --- a/ls-status-carefully +++ b/ls-status-carefully @@ -1,12 +1,12 @@ #! /bin/sh -cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" && -cd "$HOME"/tmp && rm -rf ls-dirty-carefully.tmp && +cd "`dirname \"$0\"`" && prog_dir="`pwd`" && +cd "$HOME"/tmp && rm -rf ls-status-carefully.tmp && -LSTMP="$HOME"/tmp/ls-dirty-carefully.tmp \ -"$PROG_DIR"/do-all \ +LSTMP="$HOME"/tmp/ls-status-carefully.tmp \ +"$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue;' \ 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ - 'test -n "`git status -s`" && echo "$d"' && + 'test -n "`git status --short`" && echo "$d"' && -cd "$HOME"/tmp && exec rm -rf ls-dirty-carefully.tmp +cd "$HOME"/tmp && exec rm -rf ls-status-carefully.tmp -- 2.39.5