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

Upstream-commit: b8e7ec1b74fdeaeab56a8ffab801dcd87b7361ca
Component: engine
This commit is contained in:
Tianon Gravi
2013-11-08 15:44:52 -07:00
parent 30b875bb54
commit db48d3cf28

View File

@ -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
}