]> git.phdru.name Git - git-scripts.git/blobdiff - do-all
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / do-all
diff --git a/do-all b/do-all
index bededfb739089c4a38ac676911f6c6102d5a429a..bd634ade504957e2b7493c0e771b3026f7905768 100755 (executable)
--- a/do-all
+++ b/do-all
@@ -2,10 +2,10 @@
 
 prog_dir="`dirname \"$0\"`" &&
 
-while true; do
-   read d || exit 0
-   if ! test -d "$d"; then continue; fi
+cat "$prog_dir"/locate-all.list |
+while read d; do
+   if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
    test -d "$d"/.git && g="$d"/.git || g="$d"
-   b="`basename \"$d\" .git`"
+   b="`basename \"$d\"`"
    eval "$@"
-done < "$prog_dir"/locate-all.list
+done