local vars are only possible inside of functions

This commit is contained in:
Daniel Steglich committed 2015-03-25 21:13:08 +01:00
1 parent b4b3bb83f4
commit c4fa908dd7
1 file changed
+1 -1
+1 -1
View File
@@ -357,7 +357,7 @@ case ${cmd} in
;;
update)
doReadCFG
local dnsentry=$(nslookup "${host}"|tail -n2|grep A|sed s/[^0-9.]//g)
dnsentry=$(nslookup "${host}"|tail -n2|grep A|sed s/[^0-9.]//g)
doGetWANIP
echo ${IPFILE}
echo ${wanip} > ${IPFILE}