add exit code to validate_domain function
This commit is contained in:
parent
bf7407584c
commit
766a99478b
|
@ -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
|
||||
;;
|
||||
\? )
|
||||
|
|
Loading…
Reference in New Issue
Block a user