Browse code

Update release script with proper support for non-*.docker.io bucket URLs

Tianon Gravi authored on 2013/11/09 07:44:52
Showing 1 changed files
... ...
@@ -107,7 +107,7 @@ s3_url() {
107 107
 			echo "https://$BUCKET"
108 108
 			;;
109 109
 		*)
110
-			echo "http://$BUCKET.s3.amazonaws.com"
110
+			s3cmd ws-info s3://$BUCKET | awk -v 'FS=: +' '/http:\/\/'$BUCKET'/ { gsub(/\/+$/, "", $2); print $2 }'
111 111
 			;;
112 112
 	esac
113 113
 }