From 1aa7a2a3209e1c6e7bfd361d520da6ee97e6127d Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 13 Jan 2021 14:37:23 +0000 Subject: [PATCH] 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) --- hack/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install.sh b/hack/install.sh index 7381979..8ea5d1b 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -12,7 +12,7 @@ export REPO="faasd" version="" 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" if [ ! $version ]; then