2017-09-29 04:38:19 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-10-02 04:08:50 -05:00
|
|
|
URL_LATEST=https://api.github.com/repos/digitalocean/netbox/releases
|
2017-09-29 04:38:19 -05:00
|
|
|
|
2017-10-02 04:08:50 -05:00
|
|
|
JQ_LATEST="group_by(.prerelease) | .[] | sort_by(.published_at) | reverse | .[0] | select(.prerelease==${PRERELEASE-false}) | .tag_name"
|
|
|
|
|
|
|
|
VERSION=$(curl "${URL_LATEST}" | jq -r "${JQ_LATEST}")
|
|
|
|
|
|
|
|
./build.sh "${VERSION}" $@
|
2017-09-29 04:38:19 -05:00
|
|
|
|