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