CI: fix build exists check

KASM-1910-fix_pipeline
Dmitry Maksyoma 4 years ago
parent 22362e73ad
commit 3500489bb8

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

Loading…
Cancel
Save