mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
local vars are only possible inside of functions
This commit is contained in:
parent
b4b3bb83f4
commit
c4fa908dd7
@ -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}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user