aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/create-user-build-script
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2015-06-19 01:57:18 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2015-06-19 01:57:18 +0800
commit282d0316445c35d512b73b0f899c7f29bedd0a02 (patch)
tree8f981f8f815978891f0a6b2bd57cb5abec6e3172 /build-scripts/create-user-build-script
parent50ab6638d6e97a793572dc949a937ea00c883213 (diff)
fix the problem when SOURCE_OVERLAY not specified.
when SOURCE_OVERLAY not specified, test [ -n ${SOURCE_OVERLAY} ] will pass. Here fix it by quoting ${SOURCE_OVERLAY} with double quote sign. Like [ -n "${SOURCE_OVERLAY}" ] Change-Id: If0b0a3645a93e28d3681aed5684ca308cfb49deb Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-xbuild-scripts/create-user-build-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 63faeaa..4f22bfe 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -323,7 +323,7 @@ EOF
if [ -n "$SOURCE_OVERLAY" ]; then
cat <<EOF
-if [ -n \${SOURCE_OVERLAY} ]; then
+if [ -n "\${SOURCE_OVERLAY}" ]; then
# extract the vendor's source overlay
tar -x -a -f "\${SOURCE_OVERLAY}" -C .
source_overlay_name=\$(basename \${SOURCE_OVERLAY})