minor, ignore empty -d value

This commit is contained in:
neil 2016-06-09 12:45:30 +08:00
parent 432c589722
commit ee1737a52e
1 changed files with 14 additions and 11 deletions

View File

@ -2284,7 +2284,8 @@ _process() {
--domain|-d)
_dvalue="$2"
if [ -z "$_dvalue" ] || _startswith "$_dvalue" "-" ; then
if [ "$_dvalue" ] ; then
if _startswith "$_dvalue" "-" ; then
_err "'$_dvalue' is not a valid domain for parameter '$1'"
return 1
fi
@ -2298,6 +2299,8 @@ _process() {
_altdomains="$_altdomains,$_dvalue"
fi
fi
fi
shift
;;