mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
local vars are only possible inside of functions
This commit is contained in:
1 parent
b4b3bb83f4
commit
c4fa908dd7
1 file changed
+1
-1
+1
-1
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user