Make the determination of the remote repo url work on MacOS
Use bash substitution, instead of a piped sed
This commit is contained in:
parent
8a71b563c9
commit
3288713ba6
1 changed files with 3 additions and 2 deletions
5
g
5
g
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Wrapper for git to handle more subdirs at the same time
|
||||
#
|
||||
|
||||
set -x
|
||||
# no params, no action
|
||||
if [ "$#" -eq "0" ] ; then
|
||||
git
|
||||
|
@ -187,7 +187,8 @@ for REPO in $DIRS ; do
|
|||
fi
|
||||
;;
|
||||
clone)
|
||||
EXTRA="$(git config remote.origin.url|sed 's|/[^/]\+$||')/${REPO}"
|
||||
EXTRA="$(git config remote.origin.url)"
|
||||
EXTRA=${EXTRA/bootstrap/${REPO}}
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue