diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index db6704d2..fa1c7205 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -62,11 +62,12 @@ STATUS() { } NEWCERT(){ echo "" - NEW_CERT=${1} - if [ -z ${NEW_CERT+x} ]; then + if [ -z ${1+x} ]; then echo -e -n "${idsCL[LightCyan]}Create certificate for what address: ${idsCL[Default]}" read NEW_CERT echo "" + else + NEW_CERT=${1} fi echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}" echo ""