mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-28 00:10:47 +01:00
Quick shellcheck fix as per suggestion
This commit is contained in:
@@ -375,7 +375,7 @@ configure_ethernet() {
|
||||
local _response=
|
||||
|
||||
# Try to get a list of the available physical network/ethernet interfaces.
|
||||
local ETHERNET_PHY_ADAPTERS=$(pciconf -lv | grep 'ethernet' -B4 | grep 'class=0x020000' | awk -F '@' '{print $1}')
|
||||
local ETHERNET_PHY_ADAPTERS="$(pciconf -lv | grep 'ethernet' -B4 | grep 'class=0x020000' | awk -F '@' '{print $1}')"
|
||||
if [ -z "${ETHERNET_PHY_ADAPTERS}" ]; then
|
||||
error_exit "Unable to detect for any physical ethernet interfaces, exiting."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user