Update benchmarks/scripts/compare.sh

Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
Clémentine Urquizar 2021-06-01 13:56:26 +02:00 committed by Tamo
parent b3c0d43890
commit 57ed96622b
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -45,6 +45,10 @@ file2_local_path="/tmp/$file2"
if [[ ! -f "$file1_local_path" ]]; then if [[ ! -f "$file1_local_path" ]]; then
s3cmd get "$file1_s3_path" "$file1_local_path" s3cmd get "$file1_s3_path" "$file1_local_path"
if [[ "$?" -ne 0 ]]; then
echo 's3cmd command failed. Check your configuration'
exit 1
fi
else else
echo "$file1 already present in /tmp, no need to download." echo "$file1 already present in /tmp, no need to download."
fi fi