diff options
-rwxr-xr-x | build-scripts/create-user-build-script | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script index 26453dd..929d618 100755 --- a/build-scripts/create-user-build-script +++ b/build-scripts/create-user-build-script @@ -32,13 +32,13 @@ set -e EXACT=1 DIR=android -ID=default +ID=default-bot usage() { echo $USAGE_SUM echo -e $USAGE_OVERLAY - echo " -t Reproduce the from the tip of the branch rather than doing" + echo " -t Reproduce the build from the tip of the branch rather than doing" echo " an exact replica build" echo " -d <directory> The directory to download code and build from" echo " Default: \${DIR}" @@ -179,14 +179,20 @@ fi # check for linaro private git repositories PRI=`grep -i "linaro-private" .repo/manifests/${MANIFEST_FILENAME} | wc -l` if [ $PRI -gt 0 ] ; then - if [ "$ID" == "default" ] ; then + if [ "$ID" == "default-bot" ] ; then echo "You must specify valid login/access-id to clone from linaro-private git repositories." - echo "Press "y" to continue (which may result in incomplete build) OR Press "n" for help." + echo "Press "y" to continue (which may result in incomplete build), OR" + echo "Press "n" to enter login details, OR" + echo "Press "h" for help." read NEXT - [ ${NEXT} == y] || usage - else - sed -i 's/\/\/.*-bot@/\/\/'"$ID"'@/' .repo/manifests/${MANIFEST_FILENAME} + if [ ${NEXT} == n ] ; then + echo "Enter login/access-id:" + read ID + elif [ ${NEXT} == h ] ; then + usage + fi fi + sed -i 's/\/\/.*-bot@/\/\/'"$ID"'@/' .repo/manifests/${MANIFEST_FILENAME} fi ./repo sync |