Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix syntax error in sample data load script (#869)

Dhruv Bhanushali6342b255d89d
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