Skip to content

Commit e4cd0de

Browse files
committed
Merge branch 'shell-expansion' into main
2 parents 4f4ebf4 + 3879665 commit e4cd0de

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/workflows/test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#################
55

66
function _msg() {
7-
local msg="${1?:Message missing}"
7+
local msg="${1:?Message missing}"
88
echo "${msg}"
99
}
1010

@@ -19,15 +19,15 @@ do
1919
done
2020

2121
case "$1" in
22-
"Testing")
23-
_msg "Testing"
22+
Testing)
23+
_msg Testing
2424
;;
25-
"Production")
26-
_msg "Production"
25+
Production)
26+
_msg Production
2727
;;
28-
*) ;;
28+
*) echo "test.sh: invalid case" >&2 ;;
2929
esac
3030

31-
_msg Testing
31+
_msg "End of test script."
3232

3333
exit 0

0 commit comments

Comments
 (0)