15 lines
264 B
Bash
Executable File
15 lines
264 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
check_directory_exists() {
|
|
local remote_dir="$1"
|
|
|
|
curl --output /dev/null --silent --head --fail "$remote_dir"
|
|
}
|
|
|
|
S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/${S3_BUILD_DIRECTORY}/";
|
|
if check_directory_exists "$S3_URL"; then
|
|
exit 1
|
|
fi
|