]> git.phdru.name Git - git-scripts.git/blob - do-all
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / do-all
1 #! /bin/sh
2
3 prog_dir="`dirname \"$0\"`" &&
4
5 cat "$prog_dir"/locate-all.list |
6 while read d; do
7    if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
8    test -d "$d"/.git && g="$d"/.git || g="$d"
9    b="`basename \"$d\"`"
10    eval "$@"
11 done