From ab2750bf0ea4a687c639adebec76b170e7925392 Mon Sep 17 00:00:00 2001 From: Sandor Semsey Date: Tue, 11 Nov 2025 00:00:07 +0100 Subject: [PATCH 1/2] shell: use correct parameter expansion for unset argument error message --- tests/workflows/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/workflows/test.sh b/tests/workflows/test.sh index c484506..a350922 100755 --- a/tests/workflows/test.sh +++ b/tests/workflows/test.sh @@ -4,7 +4,7 @@ ################# function _msg() { - local msg="${1?:Message missing}" + local msg="${1:?Message missing}" echo "${msg}" } From 3879665e70b300558247e7f6499f21ef76b42ac9 Mon Sep 17 00:00:00 2001 From: Sandor Semsey Date: Tue, 11 Nov 2025 00:53:02 +0100 Subject: [PATCH 2/2] test.sh: remove unnecessary quotes --- tests/workflows/test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/workflows/test.sh b/tests/workflows/test.sh index a350922..897ea82 100755 --- a/tests/workflows/test.sh +++ b/tests/workflows/test.sh @@ -19,15 +19,15 @@ do done case "$1" in - "Testing") - _msg "Testing" + Testing) + _msg Testing ;; - "Production") - _msg "Production" + Production) + _msg Production ;; - *) ;; + *) echo "test.sh: invalid case" >&2 ;; esac -_msg Testing +_msg "End of test script." exit 0