From: Harald Hoyer Date: Fri, 12 Feb 2021 12:26:10 +0000 (+0100) Subject: fix: shellcheck for modules.d/40network/module-setup.sh X-Git-Tag: 052~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b4442cfc15262d054e3019d07241506a63475d;p=thirdparty%2Fdracut.git fix: shellcheck for modules.d/40network/module-setup.sh --- diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh index d72c30620..d30f4965d 100755 --- a/modules.d/40network/module-setup.sh +++ b/modules.d/40network/module-setup.sh @@ -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"