Skip to content

Commit 0d61bb6

Browse files
authored
Fixes command not found when calling check-grid with unknown arguments (#1119)
It's causing issue only when check-grid is called with unknown arguments. Function echoerr has been removed previously or was never defined. Outputs message to stderr and exits with code 1 from while loop.
1 parent a09631c commit 0d61bb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Base/check-grid.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set -e
66
HOST="localhost"
77
PORT="4444"
88

9+
echoerr() { echo "$@" 1>&2; }
10+
911
# process arguments
1012
while [[ $# -gt 0 ]]
1113
do
@@ -20,6 +22,7 @@ do
2022
;;
2123
*)
2224
echoerr "Unknown argument: $1"
25+
exit 1
2326
;;
2427
esac
2528
done

0 commit comments

Comments
 (0)