Fix typo in device detection

pull/1/head
Nicolas Arenas 2023-09-14 09:33:01 +02:00
parent f2da9c6e17
commit b55935b196
1 changed files with 1 additions and 1 deletions

View File

@ -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