Browse Source

fix(kernel-network-modules): shellcheck for modules.d/90kernel-network-modules

master
Harald Hoyer 3 years ago committed by Harald Hoyer
parent
commit
f0ad24623a
  1. 0
      modules.d/90kernel-network-modules/.shchkdir
  2. 2
      modules.d/90kernel-network-modules/module-setup.sh

0
modules.d/90kernel-network-modules/.shchkdir

2
modules.d/90kernel-network-modules/module-setup.sh

@ -24,7 +24,7 @@ installkernel() { @@ -24,7 +24,7 @@ installkernel() {

if [[ $hostonly_mode == 'strict' ]] && [[ $hostonly_nics ]]; then
for _nic in $hostonly_nics; do
mapfile -t _net_drivers <<< "$(get_dev_module /sys/class/net/"$_nic")"
mapfile -t _net_drivers < <(get_dev_module /sys/class/net/"$_nic")
if ((${#_net_drivers[@]} == 0)); then
derror "--hostonly-nics contains invalid NIC '$_nic'"
continue

Loading…
Cancel
Save