]> git.phdru.name Git - git-scripts.git/blobdiff - ls-status
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / ls-status
index 6892f2bdb05a6690916084ccace547bdf755b1ba..3bcc50cab7970ca060a3f45a6b5a9909b7f9e442 100755 (executable)
--- a/ls-status
+++ b/ls-status
@@ -1,9 +1,9 @@
 #! /bin/sh
 
+d="`pwd`" &&
 cd "`dirname \"$0\"`" &&
 prog_dir="`pwd`" &&
-export prog_dir
+export prog_dir &&
+cd "$d" &&
 
-exec "$prog_dir"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`"$prog_dir"/git-status.sh --short`" && echo "$d"'
+if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi