minor, fix dns param

This commit is contained in:
neilpang 2017-07-29 15:23:31 +08:00
parent a6a0495392
commit a5c56c547d
1 changed files with 1 additions and 1 deletions

View File

@ -5440,7 +5440,7 @@ _process() {
;;
--dns)
wvalue="dns"
if ! _startswith "$2" "-"; then
if [ "$2" ] && ! _startswith "$2" "-"; then
wvalue="$2"
shift
fi