From db23a2a2cce269f2f66b987eaa95f7d4c625f482 Mon Sep 17 00:00:00 2001 From: Weezer Su Date: Tue, 11 Jul 2017 16:38:56 -0500 Subject: [PATCH] Do not exit if the REDEPLOY_EXTRA_SCRIPT is null or not set Make sure the script is still going if REDEPLOY_EXTRA_SCRIPT is null or not set, and will run extra script if it is not null. Change-Id: Ic4b37ccc0ac6c23be892fee7ccd2c82f6f1d7da1 --- leap-upgrades/re-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leap-upgrades/re-deploy.sh b/leap-upgrades/re-deploy.sh index 98279c90..bdc5c1fc 100755 --- a/leap-upgrades/re-deploy.sh +++ b/leap-upgrades/re-deploy.sh @@ -91,7 +91,7 @@ RUN_TASKS+=("os-sahara-install.yml") RUN_TASKS+=("${UPGRADE_UTILS}/post-redeploy-cleanup.yml") # Loads a shell script that can be used to modify # the RUN_TASKS behavior. -if [[ ! -z ${REDEPLOY_EXTRA_SCRIPT} ]]; then +if [[ ${REDEPLOY_EXTRA_SCRIPT:-} ]]; then notice "Running extra script before re-deploy" source ${REDEPLOY_EXTRA_SCRIPT} fi