With a bash script, I want to take action if the node version is less than a particular value.
How can I compare semver versions with Bash?
something like:
NV=$(node --version)
if [[ ${NV} < 5 ]]; then
# do something
fi
obvious that's not quite right
node --version
output just looks like:
$ node --version
v6.9.5