Browse Source

minor, fix dns param

neilpang 8 years ago
parent
commit
a5c56c547d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme.sh

+ 1 - 1
acme.sh

@@ -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