From 3500489bb8fcbf17fd06d618ccee1efa98176bbe Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sat, 11 Sep 2021 17:26:56 +1200 Subject: [PATCH] CI: fix build exists check --- .ci/check_if_build_was_already_uploaded | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/check_if_build_was_already_uploaded b/.ci/check_if_build_was_already_uploaded index 1301b64..b21018c 100755 --- a/.ci/check_if_build_was_already_uploaded +++ b/.ci/check_if_build_was_already_uploaded @@ -3,8 +3,10 @@ check_directory_exists() { local remote_dir="$1" - ! curl --output /dev/null --silent --head --fail "$remote_dir" + curl --output /dev/null --silent --head --fail "$remote_dir" } S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/${S3_BUILD_DIRECTORY}/"; -check_directory_exists "$S3_URL" +if check_directory_exists "$S3_URL"; then + exit 1 +fi