Make the determination of the remote repo url work on MacOS

Use bash substitution, instead of a piped sed
This commit is contained in:
Norbert Thiebaud 2010-11-20 23:00:47 -06:00 committed by Norbert Thiebaud
parent 8a71b563c9
commit 3288713ba6

5
g
View file

@ -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