Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
ee1737a5
Commit
ee1737a5
authored
Jun 09, 2016
by
neil
Browse files
minor, ignore empty -d value
parent
432c5897
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
ee1737a5
...
...
@@ -2284,20 +2284,23 @@ _process() {
--domain
|
-d
)
_dvalue
=
"
$2
"
if
[
-z
"
$_dvalue
"
]
||
_startswith
"
$_dvalue
"
"-"
;
then
_err
"'
$_dvalue
' is not a valid domain for parameter '
$1
'"
return
1
fi
if
[
-z
"
$_domain
"
]
;
then
_domain
=
"
$_dvalue
"
else
if
[
"
$_altdomains
"
=
"no"
]
;
then
_altdomains
=
"
$_dvalue
"
if
[
"
$_dvalue
"
]
;
then
if
_startswith
"
$_dvalue
"
"-"
;
then
_err
"'
$_dvalue
' is not a valid domain for parameter '
$1
'"
return
1
fi
if
[
-z
"
$_domain
"
]
;
then
_domain
=
"
$_dvalue
"
else
_altdomains
=
"
$_altdomains
,
$_dvalue
"
if
[
"
$_altdomains
"
=
"no"
]
;
then
_altdomains
=
"
$_dvalue
"
else
_altdomains
=
"
$_altdomains
,
$_dvalue
"
fi
fi
fi
shift
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment