diff --git a/addons/deSEC/desec_subdomain.sh b/addons/deSEC/desec_subdomain.sh index f6037234..eff1c038 100644 --- a/addons/deSEC/desec_subdomain.sh +++ b/addons/deSEC/desec_subdomain.sh @@ -29,13 +29,16 @@ fi while : do # Ask for subdomain - SUBDOMAIN=$(input_box_flow "Please enter the subdomain you want to add or delete, e.g: yoursubdomain") - # Check if subdomain contains a dot - if echo "$SUBDOMAIN" | grep '\.' >/dev/null 2>&1 + if [ -z $SUBDOMAIN ] then - msg_box "Please *only* enter the subomain name like 'yoursubdomain', not 'yoursubdomain.yourdomain.io'." - else - break + SUBDOMAIN=$(input_box_flow "Please enter the subdomain you want to add or delete, e.g: yoursubdomain") + # Check if subdomain contains a dot + if echo "$SUBDOMAIN" | grep '\.' >/dev/null 2>&1 + then + msg_box "Please *only* enter the subomain name like 'yoursubdomain', not 'yoursubdomain.yourdomain.io'." + else + break + fi fi done