From: Harald Hoyer Date: Fri, 12 Feb 2021 12:26:10 +0000 (+0100) Subject: fix: shellcheck for mkinitrd-suse.sh X-Git-Tag: 052~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e770ad31a6d0c69c9e7054ce10c0fa506e142a12;p=thirdparty%2Fdracut.git fix: shellcheck for mkinitrd-suse.sh --- diff --git a/mkinitrd-suse.sh b/mkinitrd-suse.sh index 708c4e679..e718f95e6 100755 --- a/mkinitrd-suse.sh +++ b/mkinitrd-suse.sh @@ -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}"