We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b92898 commit 9821460Copy full SHA for 9821460
bin/upload-to-mirror
@@ -107,6 +107,9 @@ mirror() {
107
package_url=$1
108
expected_checksum=$2
109
110
+ # skip anything we already have on S3
111
+ # this only checks filename and not etag, so a bad upload will still trigger this
112
+ [[ "$s3_bucket_contents" == *"$expected_checksum"* ]] && return 1
113
114
mkdir -p /tmp/ruby-build/
115
package_filename="/tmp/ruby-build/${expected_checksum}"
@@ -125,6 +128,7 @@ mirror() {
125
128
}
126
129
127
130
131
+s3_bucket_contents=`s3cmd ls s3://$S3_BUCKET`
132
for def in $(ruby_definitions); do
133
checksum="${def#*#}"
134
package_url="${def%%#*}"
0 commit comments