exit ${1:-1}
}
-vexec() {
+v() {
printf '%s\n%s\n' "${PWD}" "$*"
- exec "$@"
+ "$@"
}
email="vapier@chromium.org"
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%/*}
fi
fi
-vexec \
- repo init \
- ${MANIFEST:+-u "${MANIFEST}"} \
- ${REPO_URL:+--repo-url="${REPO_URL}"} \
- ${REF:+--reference "${REF}"} \
- ${BRANCH:+-b "${BRANCH}"}
+exit 0