diff --git a/defaults.inc b/defaults.inc index 99326ef1..7cc2fc39 100755 --- a/defaults.inc +++ b/defaults.inc @@ -79,7 +79,7 @@ DISP_HEADER(){ } DIVIDER(){ - if [ "$2" = "" ]; then clr='Yellow' + if [ -z ${2t+x} ]; then clr='Yellow' else clr=$2 fi echo -e "${idsCL[${clr~}]}-----------------------------------------------------------------------${idsCL[Default]}" diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 517e3a28..8cc98627 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -125,7 +125,7 @@ STATUS-CHECK(){ NEWCERT(){ echo "" - if [ -z ${1+x} ]; then + echo -e -n "${idsCL[LightCyan]}Create certificate for what address: ${idsCL[Default]}" read NEW_CERT echo ""