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
This commit is contained in:
Weezer Su 2017-07-11 16:38:56 -05:00 committed by Jean-Philippe Evrard
parent c441ba4410
commit db23a2a2cc

View File

@ -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