minor, fix dns param

This commit is contained in:
neilpang 2017-07-29 15:23:31 +08:00
parent a6a0495392
commit a5c56c547d

View File

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