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

index 77b9f3cbfceb7a57e6cf6b49f880a57799a53d8c..7e5e00842dede07eaab0fc616fde7023edfd6ecf 100755 (executable)
@@ -45,7 +45,7 @@ EOF
 if [[ -f /sys/firmware/ipl/ipl_type &&
             $(</sys/firmware/ipl/ipl_type) = "ccw" ]] ; then
     (
-        local _ccw=$(cat /sys/firmware/ipl/device)
+        _ccw=$(cat /sys/firmware/ipl/device)
 
         create_udev_rule $_ccw
     )
@@ -91,7 +91,7 @@ for dasd_arg in $(getargs rd.dasd=); do
                     shift
                     IFS="$OLDIFS"
                     for dev in $(seq $(( 16#$start )) $(( 16#$end )) ) ; do
-                        create_udev_rule $(printf "%s.%04x" "$prefix" "$dev")
+                        create_udev_rule "$(printf "%s.%04x" "$prefix" "$dev")"
                     done
                     ;;
                 *)
@@ -108,7 +108,7 @@ for dasd_arg in $(getargs rd.dasd=); do
                     shift
                     chan=$1
                     IFS="$OLDIFS"
-                    create_udev_rule $(printf "%01x.%01x.%04x" $(( 16#$sid )) $(( 16#$ssid )) $(( 16#$chan )) )
+                    create_udev_rule "$(printf "%01x.%01x.%04x" $(( 16#$sid )) $(( 16#$ssid )) $(( 16#$chan )) )"
                     shift
                     ;;
             esac