Ver código fonte

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

Tianon Gravi 11 anos atrás
pai
commit
b8e7ec1b74
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      hack/release.sh

+ 1 - 1
hack/release.sh

@@ -107,7 +107,7 @@ s3_url() {
 			echo "https://$BUCKET"
 			;;
 		*)
-			echo "http://$BUCKET.s3.amazonaws.com"
+			s3cmd ws-info s3://$BUCKET | awk -v 'FS=: +' '/http:\/\/'$BUCKET'/ { gsub(/\/+$/, "", $2); print $2 }'
 			;;
 	esac
 }