CI: fix build exists check

This commit is contained in:
Dmitry Maksyoma
2021-09-11 17:26:56 +12:00
parent 22362e73ad
commit 3500489bb8

View File

@@ -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