From 6342b255d89d0a4be6e281f5158c41c688b2446f Mon Sep 17 00:00:00 2001 From: Dhruv Bhanushali Date: Tue, 9 Aug 2022 21:32:49 +0530 Subject: [PATCH] Fix syntax error in sample data load script (#869) --- justfile | 1 + load_sample_data.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 434edf4f2..e3a6bd2d1 100644 --- a/justfile +++ b/justfile @@ -142,6 +142,7 @@ _ing-api data port="8001": -X POST \ -H 'Content-Type: application/json' \ -d '{{ data }}' \ + -w "\n" \ 'http://localhost:{{ port }}/task' # Check the health of the ingestion-server diff --git a/load_sample_data.sh b/load_sample_data.sh index 6a98370d7..9450a6f8b 100755 --- a/load_sample_data.sh +++ b/load_sample_data.sh @@ -113,7 +113,7 @@ set +e while true; do just ingest-upstream "image" "init" just wait-for-index "image-init" - if [$? -eq 0 ]; then + if [ $? -eq 0 ]; then break fi ((c++)) && ((c==3)) && break