shellcheck: Fix shellcheck SC2145

> Argument mixes string and array. Use * or separate argument.

- Swap echos for printfs and improve formatting
- Replace $@ with $*
- Split arrays into separate arguments

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-02-28 11:01:14 +00:00
parent bc2d7d9e1e
commit 58672068ff
12 changed files with 21 additions and 21 deletions

View File

@@ -140,7 +140,7 @@ EOF
function main() {
# Verify enough arguments
if [ $# != 1 ]; then
echo >&2 "error: Not enough arguments [$@]"
echo >&2 "error: Not enough arguments [$*]"
help
exit 1
fi