Update get.sh to determine latest full release from Github

This commit updates the one-line installer `get.sh` to use the latest
full release from Github rather than use a hard-coded version string.

Draft releases and prereleases are not returned by the endpoint used to
determine the version.

Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
John McCabe
2017-08-19 21:28:04 +01:00
committed by Alex Ellis
parent 9c3ba09ef3
commit e413d42a3a

2
get.sh
View File

@@ -1,4 +1,4 @@
version=0.3
version=$(curl -s https://api.github.com/repos/alexellis/faas-cli/releases/latest | grep 'tag_name' | cut -d\" -f4)
hasCli() {
has=$(which faas-cli)