From 433faa03abf9278b16058000b092ea1606f41ccf Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 9 Nov 2024 00:50:41 +0300 Subject: [PATCH] now trailing .git is properly ignored... Signed-off-by: Alex A. Naanou --- bin/git-listall | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/git-listall b/bin/git-listall index 5ba83e2..b3a76bb 100755 --- a/bin/git-listall +++ b/bin/git-listall @@ -93,7 +93,8 @@ lines=() | sed -n '/\[remote "origin"\]/,/^\s*url/p' \ | grep 'url = ' \ | sed \ - -e 's/\s*url\s*=\s*//') + -e 's/\s*url\s*=\s*//' \ + -e 's/.git\s*$//') [ -z $remote ] \ && continue line="$path=$remote" @@ -103,7 +104,9 @@ lines=() if [ -e "$LIST" ] ; then cat "$LIST" \ | grep -ve '\(^\s*#\|^\s*$\)' \ - | sed -e 's/^-//' + | sed \ + -e 's/^-//' \ + -e 's/.git\s*$//' fi } \ | sort \