diff options
author | 2018-11-19 22:58:02 -0500 | |
---|---|---|
committer | 2018-11-19 22:58:02 -0500 | |
commit | a3af06b28b81c6fc0de69c8a6186c2685f5609ce (patch) | |
tree | 71fa3ee6b3b1c4342cc5b4f1d09b701375c345ee /jjb/apex | |
parent | b8a9d735ba1c4b529664344954df1e33264d8d4d (diff) |
Apex: Fixes unset var checks
Var checks for unset required proper parameter expansion to avoid
nounset.
Change-Id: Ide5db47e2243c8aee0f97369bf3cd0673e7f4bd3
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex')
-rwxr-xr-x | jjb/apex/apex-deploy.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh index 0e247df6c..09d6ca630 100755 --- a/jjb/apex/apex-deploy.sh +++ b/jjb/apex/apex-deploy.sh @@ -13,7 +13,7 @@ echo "Starting the Apex deployment." echo "--------------------------------------------------------" echo -if [ -z "$DEPLOY_SCENARIO" ]; then +if [ -z ${DEPLOY_SCENARIO+x} ]; then echo "Deploy scenario not set!" exit 1 else @@ -151,7 +151,7 @@ if [[ "$JOB_NAME" =~ "virtual" ]]; then else ENV_TYPE="functest" fi - if [ -z "$OS_VERSION" ]; then + if [ -z ${OS_VERSION+x} ]; then echo "INFO: OS_VERSION not passed to deploy, detecting based on branch and scenario" case $BRANCH in master) |