]> git.wh0rd.org Git - home.git/commitdiff
setup e-mail after we init the repo
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Jun 2012 05:41:45 +0000 (01:41 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Jun 2012 05:41:45 +0000 (01:41 -0400)
.bin/cros-repo

index 3da6b5cdcecbfb752f1292074ff2d4c114732a5e..711b8d3c0677e977163c670acb905f7985df45ce 100755 (executable)
@@ -15,9 +15,9 @@ usage() {
        exit ${1:-1}
 }
 
-vexec() {
+v() {
        printf '%s\n%s\n' "${PWD}" "$*"
-       exec "$@"
+       "$@"
 }
 
 email="vapier@chromium.org"
@@ -50,6 +50,12 @@ while [[ $# -gt 0 ]] ; do
        shift
 done
 
+v repo init \
+       ${MANIFEST:+-u "${MANIFEST}"} \
+       ${REPO_URL:+--repo-url="${REPO_URL}"} \
+       ${REF:+--reference "${REF}"} \
+       ${BRANCH:+-b "${BRANCH}"}
+
 rdir=$(realpath "`pwd`")
 while [[ ! -d ${rdir}/.repo ]] ; do
        rdir=${rdir%/*}
@@ -67,9 +73,4 @@ if [[ -d ${rdir} ]] ; then
        fi
 fi
 
-vexec \
-       repo init \
-       ${MANIFEST:+-u "${MANIFEST}"} \
-       ${REPO_URL:+--repo-url="${REPO_URL}"} \
-       ${REF:+--reference "${REF}"} \
-       ${BRANCH:+-b "${BRANCH}"}
+exit 0