From: Harald Hoyer Date: Fri, 26 Mar 2021 09:29:31 +0000 (+0100) Subject: fix(znet): shellcheck for modules.d/95znet X-Git-Tag: 054~213 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0efaeca11a872e7707fda2cd06b72d785d9424d;p=thirdparty%2Fdracut.git fix(znet): shellcheck for modules.d/95znet --- diff --git a/modules.d/95znet/.shchkdir b/modules.d/95znet/.shchkdir new file mode 100644 index 000000000..e69de29bb diff --git a/modules.d/95znet/parse-ccw.sh b/modules.d/95znet/parse-ccw.sh index 59b588f3d..3004a9e4c 100755 --- a/modules.d/95znet/parse-ccw.sh +++ b/modules.d/95znet/parse-ccw.sh @@ -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