]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(zfcp): shellcheck for modules.d/95zfcp
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:30 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 29 Mar 2021 09:31:55 +0000 (11:31 +0200)
modules.d/95zfcp/.shchkdir [new file with mode: 0644]
modules.d/95zfcp/parse-zfcp.sh

diff --git a/modules.d/95zfcp/.shchkdir b/modules.d/95zfcp/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index 4d0d8b2fa3b8ce5c7c3136662ee77e6e5d4b4af9..495aa67fd0c63887ccb94c93efb58b82d73be425 100755 (executable)
@@ -3,10 +3,11 @@
 getargbool 1 rd.zfcp.conf -d -n rd_NO_ZFCPCONF || rm /etc/zfcp.conf
 
 for zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do
-    echo $zfcp_arg | grep '^0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\}\(,0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}\)\?$' > /dev/null
+    echo "$zfcp_arg" | grep '^0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\}\(,0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}\)\?$' > /dev/null
     test $? -ne 0 && die "For argument 'rd.zfcp=$zfcp_arg'\nSorry, invalid format."
     (
         IFS=","
+        # shellcheck disable=SC2086
         set $zfcp_arg
         echo "$@" >> /etc/zfcp.conf
     )