From d6f730b170f470ec0be22302e4c5c722201d4b37 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 09:40:35 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- nodemgmt-scripts.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ""