X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=do-all;h=4b87ab27227573a16963a5fbe53542eb937a6a01;hb=2c654e316392a8b3523ea0495902372d54548e1c;hp=bededfb739089c4a38ac676911f6c6102d5a429a;hpb=4037d7a0d19fd9ffd92a52cefa6081dbf15270d6;p=git-scripts.git diff --git a/do-all b/do-all index bededfb..4b87ab2 100755 --- 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`" eval "$@" -done < "$prog_dir"/locate-all.list +done