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 }