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:
parent
c441ba4410
commit
db23a2a2cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user