Skip to content

babarot/vtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unix `test` command for Version comparison

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages