diff --git a/sbin/pdns.sh b/sbin/pdns.sh index 65b4019..e92b9aa 100755 --- a/sbin/pdns.sh +++ b/sbin/pdns.sh @@ -174,7 +174,7 @@ function pdns:getoptions () { fi if ! pdns::validate_domain $zone; then echo "ERROR: $zone is not a valid domain name." - exit + exit 1 fi ;; e ) # max (integer) – Maximum number of entries to return @@ -228,7 +228,7 @@ function pdns:getoptions () { fi if ! pdns::validate_domain $zone; then echo "ERROR: $zone is not a valid domain name." - exit + exit 1 fi ;; \? )