mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 10:40:08 +00:00
now trailing .git is properly ignored...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c2da2b01b4
commit
433faa03ab
@ -93,7 +93,8 @@ lines=()
|
|||||||
| sed -n '/\[remote "origin"\]/,/^\s*url/p' \
|
| sed -n '/\[remote "origin"\]/,/^\s*url/p' \
|
||||||
| grep 'url = ' \
|
| grep 'url = ' \
|
||||||
| sed \
|
| sed \
|
||||||
-e 's/\s*url\s*=\s*//')
|
-e 's/\s*url\s*=\s*//' \
|
||||||
|
-e 's/.git\s*$//')
|
||||||
[ -z $remote ] \
|
[ -z $remote ] \
|
||||||
&& continue
|
&& continue
|
||||||
line="$path=$remote"
|
line="$path=$remote"
|
||||||
@ -103,7 +104,9 @@ lines=()
|
|||||||
if [ -e "$LIST" ] ; then
|
if [ -e "$LIST" ] ; then
|
||||||
cat "$LIST" \
|
cat "$LIST" \
|
||||||
| grep -ve '\(^\s*#\|^\s*$\)' \
|
| grep -ve '\(^\s*#\|^\s*$\)' \
|
||||||
| sed -e 's/^-//'
|
| sed \
|
||||||
|
-e 's/^-//' \
|
||||||
|
-e 's/.git\s*$//'
|
||||||
fi
|
fi
|
||||||
} \
|
} \
|
||||||
| sort \
|
| sort \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user