Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 589 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 589 Bytes

vtest

Unix test command for Version comparison

Installation

Download the binary from GitHub Releases and drop it in your $PATH.

Usage

#!/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

License

MIT

Author

b4b4r07