mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
chore: trim distTag
Update scripts/remove-dist-tag.sh Co-Authored-By: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
parent
88c2b66e8d
commit
3b0c2be74f
@ -7,6 +7,9 @@ set -e
|
||||
|
||||
distTag=$DIST_TAG
|
||||
|
||||
# trim distTag for whitespace at the start and end
|
||||
distTag=$(echo "$distTag" | xargs)
|
||||
|
||||
if [[ -z "$distTag" ]]; then
|
||||
echo "Please enter the dist-tag you want to remove"
|
||||
read -r distTag
|
||||
@ -19,4 +22,4 @@ if [[ "$distTag" == "latest" || "$distTag" == "beta" || "$distTag" == "alpha" ||
|
||||
fi
|
||||
|
||||
# Run npm dist-tag rm $distTag on each package
|
||||
./node_modules/.bin/lerna exec --no-private --stream -- "npm dist-tag rm \$LERNA_PACKAGE_NAME $distTag"
|
||||
./node_modules/.bin/lerna exec --no-private --stream -- "npm dist-tag rm \$LERNA_PACKAGE_NAME $distTag"
|
||||
|
Loading…
x
Reference in New Issue
Block a user