]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for mkinitrd-dracut.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-dracut.sh

index 0ef999b8daba020ba11f2a34a0bc507e7051c331..657e8b297b7d253f320760ca7d06e2261c38d7b7 100755 (executable)
@@ -36,7 +36,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}"