shellcheck: Fix SC2145
SC2145 (error): Argument mixes string and array. Use * or separate
argument.
Shouldn't be a bug, since the preceding string ends with a space and
there aren't any succeeding strings.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20240406123833.406488-10-npiggin@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
diff --git a/arm/efi/run b/arm/efi/run
index f07a6e5..cf6d34b 100755
--- a/arm/efi/run
+++ b/arm/efi/run
@@ -87,7 +87,7 @@
if [ "$EFI_DIRECT" = "y" ]; then
$TEST_DIR/run \
$KERNEL_NAME \
- -append "$(basename $KERNEL_NAME) ${cmd_args[@]}" \
+ -append "$(basename $KERNEL_NAME) ${cmd_args[*]}" \
-bios "$EFI_UEFI" \
"${qemu_args[@]}"
else
diff --git a/riscv/efi/run b/riscv/efi/run
index 982b8b9..cce0686 100755
--- a/riscv/efi/run
+++ b/riscv/efi/run
@@ -97,7 +97,7 @@
fi
$TEST_DIR/run \
$KERNEL_NAME \
- -append "$(basename $KERNEL_NAME) ${cmd_args[@]}" \
+ -append "$(basename $KERNEL_NAME) ${cmd_args[*]}" \
-machine pflash0=pflash0 \
-blockdev node-name=pflash0,driver=file,read-only=on,filename="$EFI_UEFI" \
"${qemu_args[@]}"
diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh
index 86c7e54..756647f 100755
--- a/scripts/mkstandalone.sh
+++ b/scripts/mkstandalone.sh
@@ -76,7 +76,7 @@
cat scripts/runtime.bash
- echo "run ${args[@]}"
+ echo "run ${args[*]}"
}
function mkstandalone()