From f68caae819020723c45ea6f66867b0cfeec7b303 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 14 Nov 2023 15:42:53 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 313df6ae..8e2db3a1 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -503,7 +503,7 @@ UPDATE_DYNDNS(){ while [ $# -gt 0 ]; do case "$1" in -f|-force) FORCE=1;; - -t) TESTMODE=1;; + -t|-test) TESTMODE=1;; -h | -help | --help) echo echo -e "Usage: ${idsCL[LightYellow]}[nodemgmt or nmg] update-dyndns ${idsCL[Yellow]}{location}${idsCL[Default]} {" @@ -582,7 +582,7 @@ UPDATE_DYNDNS(){ echo -e "${idsCL[Green]}'${idsCL[Green]}${LOCATION^^}${idsCL[Green]}' WAN IP has not changed${idsCL[Default]}" fi else - echo -e "\n${idsCL[Red]}DYNDNS location '${LOCATION}' not recognized" + [ "${LOCATION}" == "" ] && echo -e "\n${idsCL[Red]}No DYNDNS location specified" || echo -e "\n${idsCL[Red]}DYNDNS location '${LOCATION}' not recognized" fi echo }