Explorar o código

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

Tianon Gravi %!s(int64=11) %!d(string=hai) anos
pai
achega
b8e7ec1b74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hack/release.sh

+ 1 - 1
hack/release.sh

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