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

index 708c4e679e583df82f0e74625e70dc8f2d65db3e..e718f95e61609c4aa7baec541a9006b23baeb721 100755 (executable)
@@ -87,7 +87,7 @@ read_arg() {
     else
        for ((i=3; $i <= $#; i++)); do
             # Only read next arg if it not an arg itself.
-            if [[ ${@:$i:1} = -* ]];then
+            if [[ ${*:$i:1} = -* ]];then
                break
             fi
             result="$result ${@:$i:1}"