Unix test
command for Version comparison
Download the binary from GitHub Releases and drop it in your $PATH
.
#!/bin/bash
# Check ${version} is greater than the threshold or not.
if vtest "${version} < 0.12.40"; then
: ok
else
echo "need to be upgraded" >&2
exit 1
fi