local vars are only possible inside of functions

This commit is contained in:
Daniel Steglich 2015-03-25 21:13:08 +01:00
parent b4b3bb83f4
commit c4fa908dd7

View File

@ -357,7 +357,7 @@ case ${cmd} in
;; ;;
update) update)
doReadCFG 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 doGetWANIP
echo ${IPFILE} echo ${IPFILE}
echo ${wanip} > ${IPFILE} echo ${wanip} > ${IPFILE}