From: Mike Frysinger Date: Sat, 9 Jun 2012 05:41:45 +0000 (-0400) Subject: setup e-mail after we init the repo X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a72514e615af50d50252c2efd48e253703c0b899;p=home.git setup e-mail after we init the repo --- diff --git a/.bin/cros-repo b/.bin/cros-repo index 3da6b5c..711b8d3 100755 --- a/.bin/cros-repo +++ b/.bin/cros-repo @@ -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