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

diff --git a/modules.d/95znet/.shchkdir b/modules.d/95znet/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index 59b588f3d09b0e710ad5e3379eb611427ecbdc10..3004a9e4c5eb8638b6e19d600931187fa417ceba 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 
 for ccw_arg in $(getargs rd.ccw -d 'rd_CCW=') $(getargs rd.znet -d 'rd_ZNET='); do
-    echo $ccw_arg >> /etc/ccw.conf
+    echo "$ccw_arg" >> /etc/ccw.conf
 done
 
 for ifname in $(getargs rd.znet_ifname); do
-    IFS=: read ifname_if ifname_subchannels _rest <<< "$ifname"
+    IFS=: read -r ifname_if ifname_subchannels _rest <<< "$ifname"
     if [ -z "$ifname_if" ] || [ -z "$ifname_subchannels" ] || [ -n "$_rest" ]; then
         warn "Invalid arguments for rd.znet_ifname="
     else