From d906ad5be52e1519c3dc4397516dc01339cd9959 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 6 Feb 2013 00:04:41 -0500 Subject: [PATCH] fix -g handling --- .bin/cros-repo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5