]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(kernel-network-modules): shellcheck for modules.d/90kernel-network-modules
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:21 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 29 Mar 2021 08:50:16 +0000 (10:50 +0200)
modules.d/90kernel-network-modules/.shchkdir [new file with mode: 0644]
modules.d/90kernel-network-modules/module-setup.sh

diff --git a/modules.d/90kernel-network-modules/.shchkdir b/modules.d/90kernel-network-modules/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index a43bb795095a7d2af7221bcbf9827f0ae961475b..8ebe93c6915ad69fc5e73c88cca814eebbde3b72 100755 (executable)
@@ -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