scripts/docker-playground_adapt: Fix grepping for string including dash

Change-Id: Ia8d7523b84b84e5eb0b7d92e71f60ad483bbf454
This commit is contained in:
arehbein 2022-12-01 17:23:29 +01:00
parent 849b041c5d
commit bb747b31b7
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ while [ "$1" != "" ]; do
shift
# Loop through testcases until none given or until next option comes
TESTCASES="$2"
while [ -n "$3" ] && ! echo "$3" | grep -q "^-.*"; do
while [ -n "$3" ] && ! printf "%s\n" "$3" | grep -q -- '^-.*'; do
shift
TESTCASES="$TESTCASES $2"
done