summaryrefslogtreecommitdiffstats
path: root/prototypes
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-07-05 15:06:49 +0100
committerMarkos Chandras <mchandras@suse.de>2017-07-05 15:09:31 +0100
commit81cf0fad48c181a22e65ebda341a8f8ea0c08686 (patch)
treedad7dd03c37a303a03ef624ffdab5350a38119e7 /prototypes
parent4c0f6bcadfb6b323505a6dfa719eca3832a6f127 (diff)
prototypes: xci: xci-deploy: Set default value for devel parameters
Commit 68412ffc734e ("prototypes: xci: xci-deploy.sh: Append trailing slash for rsync vars") modified xci-deploy.sh script to append a trailing slash to the devel variables but it broke the script when one of these variables was not set (since we run with 'set -eu') with the following error: ./xci-deploy.sh: line 45: !local_user_var: unbound variable Fixes: I0103b754585931fa1dcd3966c52d7e4a8f2f63f6 Change-Id: Ic2465ff07348b61e74e191516425cd10d80c1fce Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'prototypes')
-rwxr-xr-xprototypes/xci/xci-deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/xci/xci-deploy.sh b/prototypes/xci/xci-deploy.sh
index a72c9274a..d71125651 100755
--- a/prototypes/xci/xci-deploy.sh
+++ b/prototypes/xci/xci-deploy.sh
@@ -42,7 +42,7 @@ source $XCI_PATH/config/env-vars
#-------------------------------------------------------------------------------
user_local_dev_vars=(OPNFV_RELENG_DEV_PATH OPNFV_OSA_DEV_PATH OPNFV_BIFROST_DEV_PATH)
for local_user_var in ${user_local_dev_vars[@]}; do
- [[ -n ${!local_user_var} ]] && export $local_user_var=${!local_user_var%/}/
+ [[ -n ${!local_user_var:-} ]] && export $local_user_var=${!local_user_var%/}/
done
unset user_local_dev_vars local_user_var