From 1092db143e1765a45742a623dd261c04f0d457af Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 16 Jul 2020 11:44:20 -0500 Subject: [PATCH] z variable --- gravity-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 8c8afed..438ddc0 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1377,11 +1377,11 @@ function config_generate { MESSAGE="Environment Customization" echo_info - MESSAGE="Are you using a custom SSH Port? (Leave blank for default '22')" + MESSAGE="Enter a custom SSH port if required (Leave blank for default '22')" echo_need read INPUT_SSH_PORT - if [ "${INPUT_SSH_PORT}" != "" ] || [ "${INPUT_SSH_PORT}" != "22" ] + if [ -z "${INPUT_SSH_PORT}" ] || [ "${INPUT_SSH_PORT}" != "22" ] then MESSAGE="Saving Custom SSH Port to ${CONFIG_FILE}" echo_stat @@ -1393,7 +1393,7 @@ function config_generate { echo_need read INPUT_PING_AVOID - if [ "${INPUT_PING_AVOID}" != "" ] || [ "${INPUT_PING_AVOID}" != "Yes" ] || [ "${INPUT_PING_AVOID}" != "yes" ] || [ "${INPUT_PING_AVOID}" != "Y" ] || [ "${INPUT_PING_AVOID}" != "y" ] + if [ -z "${INPUT_PING_AVOID}" ] || [ "${INPUT_PING_AVOID}" != "Yes" ] || [ "${INPUT_PING_AVOID}" != "yes" ] || [ "${INPUT_PING_AVOID}" != "Y" ] || [ "${INPUT_PING_AVOID}" != "y" ] then MESSAGE="Saving Ping Avoidance to ${CONFIG_FILE}" echo_stat