scripts/docker-playground_adapt: Fix grepping for string including dash
Change-Id: Ia8d7523b84b84e5eb0b7d92e71f60ad483bbf454
This commit is contained in:
parent
849b041c5d
commit
bb747b31b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue