Browse Source

Merge pull request #958 from Neilpang/dev

Dev
neil 7 years ago
parent
commit
5303b36913
1 changed files with 3 additions and 3 deletions
  1. 3 3
      acme.sh

+ 3 - 3
acme.sh

@@ -926,7 +926,7 @@ _sign() {
 
 
 }
 }
 
 
-#keylength
+#keylength or isEcc flag (empty str => not ecc)
 _isEccKey() {
 _isEccKey() {
   _length="$1"
   _length="$1"
 
 
@@ -2251,7 +2251,7 @@ _initAPI() {
   _debug "ACME_REVOKE_CERT" "$ACME_REVOKE_CERT"
   _debug "ACME_REVOKE_CERT" "$ACME_REVOKE_CERT"
 }
 }
 
 
-#[domain]  [keylength]
+#[domain]  [keylength or isEcc flag]
 _initpath() {
 _initpath() {
 
 
   __initHome
   __initHome
@@ -5440,7 +5440,7 @@ _process() {
         ;;
         ;;
       --dns)
       --dns)
         wvalue="dns"
         wvalue="dns"
-        if ! _startswith "$2" "-"; then
+        if [ "$2" ] && ! _startswith "$2" "-"; then
           wvalue="$2"
           wvalue="$2"
           shift
           shift
         fi
         fi