From: Oleg Broytman Date: Mon, 9 Jan 2017 16:57:39 +0000 (+0300) Subject: Fix base directory name: do not remove .git suffix X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=0f7a2134a62bd77c7fef4497ee5d03f42c6a7cf3 Fix base directory name: do not remove .git suffix --- diff --git a/do-all b/do-all index 4b87ab2..bd634ad 100755 --- a/do-all +++ b/do-all @@ -6,6 +6,6 @@ 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