1
1
mirror of https://github.com/primer/css.git synced 2024-12-19 04:01:49 +03:00

alphanumeric semver sorting is dumb; just get the last one

This commit is contained in:
Shawn Allen 2017-09-26 11:49:32 -05:00
parent bd3e187979
commit a466d91a46

View File

@ -24,8 +24,7 @@ rc_version=$(
npm info "$package@$npm_tag" --json \
| jq -r '.versions[]' \
| grep "^${rc_prefix/./\.}" \
| sort -r \
| head -1
| tail -1
)
# if there isn't one, use the current local version
if [[ "$rc_version" == "" ]]; then