aboutsummaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/create-user-build-script8
1 files changed, 5 insertions, 3 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 1b0a6d7..3cc2fc7 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -112,9 +112,9 @@ echo "Press "y" to install OpenJDK v1.7, OR"
echo "Press "n" to install OpenJDK v1.6, OR"
echo "Press any other key to continue with the existing JDK installation."
read JDK
-if [ \${JDK} == y ] ; then
+if [ "\${JDK}" == y ] ; then
PKGS+=' openjdk-7-jdk openjdk-7-jre'
-elif [ \${JDK} == n ] ; then
+elif [ "\${JDK}" == n ] ; then
PKGS+=' openjdk-6-jdk openjdk-6-jre'
else
echo "Continue with the existing JDK installation .."
@@ -297,7 +297,9 @@ if [ \${PRI} -gt 0 -a \${INTERACTIVE} -eq 1 ] ; then
fi
fi
sed -i 's/\/\/.*-bot@/\/\/'"\${LINARO_ANDROID_ACCESS_ID}"'@/' .repo/manifest.xml
- sed -i 's/\/\/.*-bot@/\/\/'"\${LINARO_ANDROID_ACCESS_ID}"'@/' .repo/local_manifests/*.xml
+ if [[ -n \${LOCAL_MANIFEST} && ! -n \${MANIFEST} ]]; then
+ sed -i 's/\/\/.*-bot@/\/\/'"\${LINARO_ANDROID_ACCESS_ID}"'@/' .repo/local_manifests/*.xml
+ fi
fi
./repo sync -f -j1