]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/40network/module-setup.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/40network/module-setup.sh

index d72c30620f135ae22abd8d5cf67a755eb4f90f05..d30f4965df9cc1719bfab58d1b017d38fae96953 100755 (executable)
@@ -19,7 +19,7 @@ depends() {
         if [ -z "$network_handler" ]; then
             if find_binary wicked  &>/dev/null ; then
                 network_handler="network-wicked"
-            elif [ -x "$dracutsysrootdir/usr/libexec/nm-initrd-generator" ]; then
+            elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
                 network_handler="network-manager"
             else
                 network_handler="network-legacy"