Skip to content

Commit

Permalink
update existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwolff committed Jan 6, 2025
1 parent 4cfcd06 commit 9bffb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/cdn.sh
Original file line number Diff line number Diff line change
@@ -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…"
Expand Down

0 comments on commit 9bffb60

Please sign in to comment.