Treadler
Very Senior Member
[ "x$var2" == "x" ]
or [ -z "$2"] may bet better for
if [ "$2" != "" ]
and i don't understand why "$1" isn't getting passed off properly.
"$1" is representing host or domains or whitelist whatever you have defined it as.
"$1" "$2"
hosts url
domains url
whitelist-domains url
in the sites file
Im not seeing any error messages, everything looks fine, but, anything I’ve changed in the “sites” folder is removed & everything returned to the default.