Last active
April 2, 2018 21:42
-
-
Save joshwiens/83dfaa12633ecfdaadf38730590b1c37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webpackLatest=$(npm view webpack dist-tags --json | jq -c '.latest') | |
webpackNext=$(npm view webpack dist-tags --json | jq -c '.next') | |
compare-versions( ${webpackLatest}, ${webpackNext}); | |
if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then echo n00p; else echo run tests ; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment