We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f4ebf4 + 3879665 commit e4cd0deCopy full SHA for e4cd0de
1 file changed
tests/workflows/test.sh
@@ -4,7 +4,7 @@
4
#################
5
6
function _msg() {
7
- local msg="${1?:Message missing}"
+ local msg="${1:?Message missing}"
8
echo "${msg}"
9
}
10
@@ -19,15 +19,15 @@ do
19
done
20
21
case "$1" in
22
- "Testing")
23
- _msg "Testing"
+ Testing)
+ _msg Testing
24
;;
25
- "Production")
26
- _msg "Production"
+ Production)
+ _msg Production
27
28
- *) ;;
+ *) echo "test.sh: invalid case" >&2 ;;
29
esac
30
31
-_msg Testing
+_msg "End of test script."
32
33
exit 0
0 commit comments