From 57ed96622b92e066f0b1220e32c09161bf84bf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Tue, 1 Jun 2021 13:56:26 +0200 Subject: [PATCH] Update benchmarks/scripts/compare.sh Co-authored-by: Irevoire --- benchmarks/scripts/compare.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmarks/scripts/compare.sh b/benchmarks/scripts/compare.sh index 6bd260122..4d3205c96 100644 --- a/benchmarks/scripts/compare.sh +++ b/benchmarks/scripts/compare.sh @@ -45,6 +45,10 @@ file2_local_path="/tmp/$file2" if [[ ! -f "$file1_local_path" ]]; then s3cmd get "$file1_s3_path" "$file1_local_path" + if [[ "$?" -ne 0 ]]; then + echo 's3cmd command failed. Check your configuration' + exit 1 + fi else echo "$file1 already present in /tmp, no need to download." fi