mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 08:26:47 +00:00
Fix script to determine download location
Fixes: #148 Related to: https://github.com/openfaas/cli.openfaas.com/pull/6 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
a4a33b8596
commit
1aa7a2a320
@ -12,7 +12,7 @@ export REPO="faasd"
|
|||||||
version=""
|
version=""
|
||||||
|
|
||||||
echo "Finding latest version from GitHub"
|
echo "Finding latest version from GitHub"
|
||||||
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep -i location | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
|
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep -i "location:" | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
|
||||||
echo "$version"
|
echo "$version"
|
||||||
|
|
||||||
if [ ! $version ]; then
|
if [ ! $version ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user