From: Oleg Broytman Date: Mon, 4 Aug 2014 00:02:55 +0000 (+0400) Subject: Use cat X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=793ec2ad24ca8e4262cee86bd1aa38ea991fef24 Use cat I admit it looks like a classic useless use of cat. But see the script "pull". --- diff --git a/do-all b/do-all index bededfb..5f5a226 100755 --- a/do-all +++ b/do-all @@ -2,10 +2,11 @@ prog_dir="`dirname \"$0\"`" && +cat "$prog_dir"/locate-all.list | while true; do read d || exit 0 if ! test -d "$d"; then continue; fi test -d "$d"/.git && g="$d"/.git || g="$d" b="`basename \"$d\" .git`" eval "$@" -done < "$prog_dir"/locate-all.list +done