diff --git a/tools/cdn.sh b/tools/cdn.sh index a1dcb9e..03ff2f1 100755 --- a/tools/cdn.sh +++ b/tools/cdn.sh @@ -1,8 +1,8 @@ CURRENT_VERSION=$(node tools/attribute.js version) EXTENSION_NAME="auth0-account-link-extension" -CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/css/$EXTENSION_NAME/$CURRENT_VERSION/ | grep "link.min.css") -ADMIN_CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/css/$EXTENSION_NAME/$CURRENT_VERSION/ | grep "admin.min.css") +CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/ | grep "link.$CURRENT_VERSION.min.css") +ADMIN_CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/ | grep "admin.$CURRENT_VERSION.min.css") if [ ! -z "$CDN_EXISTS" ]; then echo "There is already a version $CURRENT_VERSION in the cdn. Skipping cdn publish…"