Explorar o código

Added quotes around $password

Jaap Marcus %!s(int64=5) %!d(string=hai) anos
pai
achega
f4e8e2c877
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/v-add-remote-dns-host

+ 1 - 1
bin/v-add-remote-dns-host

@@ -58,7 +58,7 @@ time_n_date=$(date +'%T %F')
 time=$(echo "$time_n_date" |cut -f 1 -d \ )
 date=$(echo "$time_n_date" |cut -f 2 -d \ )
 
-if [ -z $password ]; then
+if [ -z "$password" ]; then
     # Concatentating dns host string
     str="HOST='$host' PORT='$port' HASH='$hash'"
     str="$str DNS_USER='$dns_user' TYPE='$type' SUSPENDED='no'"