X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=do-all;h=bd634ade504957e2b7493c0e771b3026f7905768;hp=2a8e19baf10541e933d115cbce6574ff50f77abd;hb=HEAD;hpb=9d1f4913c3228f846cfe1eb81e42dc1a2902b29c diff --git a/do-all b/do-all index 2a8e19b..bd634ad 100755 --- a/do-all +++ b/do-all @@ -1,11 +1,11 @@ -#! /usr/bin/env bash +#! /bin/sh 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