]> git.wh0rd.org Git - home.git/commitdiff
fix -g handling
authorMike Frysinger <vapier@gentoo.org>
Wed, 6 Feb 2013 05:04:41 +0000 (00:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 Feb 2013 05:04:41 +0000 (00:04 -0500)
.bin/cros-repo

index 56ab382d5cac987115aa17dc816e06d810475cc1..d718af5fdc0a2c928ffe86836285747c174c88a6 100755 (executable)
@@ -28,7 +28,7 @@ REF=
 BRANCH=
 MANIFEST=
 MANIFEST_NAME=
-GROUPS=()
+RGROUPS=()
 REPO_URL=
 while [[ $# -gt 0 ]] ; do
        case $1 in
@@ -53,7 +53,7 @@ while [[ $# -gt 0 ]] ; do
                shift
                ;;
        -g)
-               GROUPS+=( "$2" )
+               RGROUPS+=( "$2" )
                shift
                ;;
        -m)
@@ -76,8 +76,8 @@ v repo init \
        ${REPO_URL:+--repo-url="${REPO_URL}"} \
        ${REF:+--reference "${REF}"} \
        ${MANIFEST_NAME:+-m "${MANIFEST_NAME}"} \
+       ${RGROUPS:+-g "${RGROUPS[*]}"} \
        ${BRANCH:+-b "${BRANCH}"}
-#      ${GROUPS:+-g "${GROUPS[*]}"} 
 
 rdir=$(realpath "`pwd`")
 while [[ ! -d ${rdir}/.repo ]] ; do