tests: Fix for unbound variable

This commit is contained in:
Alexander Todorov 2021-12-10 15:43:47 +02:00 committed by Sanne Raymaekers
parent 8a46796cf7
commit 43738d6caa

View file

@ -238,6 +238,7 @@ function cleanupAzure() {
# since this function can be called at any time, ensure that we don't expand unbound variables
AZURE_CMD="${AZURE_CMD:-}"
AZURE_IMAGE_NAME="${AZURE_IMAGE_NAME:-}"
AZURE_INSTANCE_NAME="${AZURE_INSTANCE_NAME:-}"
# do not run clean-up if the image name is not yet defined
if [[ -n "$AZURE_CMD" && -n "$AZURE_IMAGE_NAME" ]]; then