Skip to content

Commit

Permalink
use [[
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Oct 1, 2024
1 parent 0483446 commit 21139ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function test_completion() {
http_code=$(curl -L -sw '%{http_code}' ${url} \
-H "Content-Type: application/json" \
-d '{"model": "gemma2-2b-cpu", "prompt": "Who was the first president of the United States?", "max_tokens": 40}')
if [ "$http_code" -ne 200 ]; then
if [[ "$http_code" != "200" ]]; then
echo "Failed to get completions from $url"
echo "HTTP code: $http_code"
exit 1
Expand Down

0 comments on commit 21139ce

Please sign in to comment.