From: Mike Frysinger Date: Wed, 6 Feb 2013 05:04:41 +0000 (-0500) Subject: fix -g handling X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d906ad5be52e1519c3dc4397516dc01339cd9959;p=home.git fix -g handling --- diff --git a/.bin/cros-repo b/.bin/cros-repo index 56ab382..d718af5 100755 --- a/.bin/cros-repo +++ b/.bin/cros-repo @@ -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