From 31b743b164c15391b05d76cfd849be200496cec8 Mon Sep 17 00:00:00 2001 From: Dean Perry Date: Wed, 26 Dec 2018 20:39:47 +0000 Subject: [PATCH] Fix some more $DEFAULT_PUBLIC_IP issues (#1494) --- setup/questions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/questions.sh b/setup/questions.sh index d070a52f..bf382f49 100644 --- a/setup/questions.sh +++ b/setup/questions.sh @@ -96,12 +96,12 @@ if [ -z "${PUBLIC_IP:-}" ]; then PUBLIC_IP=$GUESSED_IP # Otherwise on the first run at least provide a default. - elif [[ -z "$DEFAULT_PUBLIC_IP" ]]; then + elif [[ -z "${DEFAULT_PUBLIC_IP:-}" ]]; then DEFAULT_PUBLIC_IP=$(get_default_privateip 4) # On later runs, if the previous value matches the guessed value then # don't ask the user either. - elif [ "$DEFAULT_PUBLIC_IP" == "$GUESSED_IP" ]; then + elif [ "${DEFAULT_PUBLIC_IP:-}" == "$GUESSED_IP" ]; then PUBLIC_IP=$GUESSED_IP fi