1
1
mirror of https://github.com/primer/css.git synced 2024-12-21 05:01:45 +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 \ npm info "$package@$npm_tag" --json \
| jq -r '.versions[]' \ | jq -r '.versions[]' \
| grep "^${rc_prefix/./\.}" \ | grep "^${rc_prefix/./\.}" \
| sort -r \ | tail -1
| head -1
) )
# if there isn't one, use the current local version # if there isn't one, use the current local version
if [[ "$rc_version" == "" ]]; then if [[ "$rc_version" == "" ]]; then