Fix typo in device detection
parent
f2da9c6e17
commit
b55935b196
|
@ -885,7 +885,7 @@ function getNetworkSettings()
|
|||
local dev=""
|
||||
|
||||
echoAndLog "${FUNCNAME}(): Detecting network parameters."
|
||||
DEVICE=( $(ip -o link show up | awk '!/loopback/ {sub(/[:@].*/,"",$2); print $2}') )
|
||||
DEVICE=$(ip -o link show up | awk '!/loopback/ {sub(/[:@].*/,"",$2); print $2}')
|
||||
if [ -z "$DEVICE" ]; then
|
||||
errorAndLog "${FUNCNAME}(): Network devices not detected."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue