Skip to content

Commit 8c1f734

Browse files
committed
test_multiprocess.sh: bad argument count
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent d79a9a5 commit 8c1f734

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_multiprocess.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/bin/bash -e
22

3+
NUM_ARGS=4
4+
35
# Check arguments
4-
if [ $# -lt 3 ]; then
5-
echo "error: Expected 3 arguments, got $#" >&2
6+
if [ $# -lt $NUM_ARGS ]; then
7+
echo "error: Expected $NUM_ARGS arguments, got $#" >&2
68
exit 1
79
fi
810

0 commit comments

Comments
 (0)