Simple utility to get the latest release version from GitHub repository
Usage: gh-latest.sh [user repo] [OPTIONS]
-u | --user Github user olding the repository
-r | --repo Github repository
-T | --token Github token
Alternatively, you can specify the user and the repo in the right order.
Examples:
gh-latest.sh -u bash-suite -r wait-host Get the latest release version of wait-host
gh-latest.sh bash-suite wait-host Get the latest release version of wait-host
If you don't want to face a Github rate limit use a personnal token:
export MYTOKEN="13546843257517438573"
./gh-downloader.sh -t $MYTOKEN -u bash-suite -r wait-host -t latest -f wait-host.sh -o /usr/sbin/wait-host
Get a GitHub personal token from here: github.com/settings/tokens