Commit ee1737a5 authored by neil's avatar neil
Browse files

minor, ignore empty -d value

parent 432c5897
...@@ -2284,20 +2284,23 @@ _process() { ...@@ -2284,20 +2284,23 @@ _process() {
--domain|-d) --domain|-d)
_dvalue="$2" _dvalue="$2"
if [ -z "$_dvalue" ] || _startswith "$_dvalue" "-" ; then if [ "$_dvalue" ] ; then
_err "'$_dvalue' is not a valid domain for parameter '$1'" if _startswith "$_dvalue" "-" ; then
return 1 _err "'$_dvalue' is not a valid domain for parameter '$1'"
fi return 1
fi
if [ -z "$_domain" ] ; then
_domain="$_dvalue" if [ -z "$_domain" ] ; then
else _domain="$_dvalue"
if [ "$_altdomains" = "no" ] ; then
_altdomains="$_dvalue"
else else
_altdomains="$_altdomains,$_dvalue" if [ "$_altdomains" = "no" ] ; then
_altdomains="$_dvalue"
else
_altdomains="$_altdomains,$_dvalue"
fi
fi fi
fi fi
shift shift
;; ;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment