From dd0e9ee8aec2973561c489815d8483066a6406b6 Mon Sep 17 00:00:00 2001 From: Tim Voronov Date: Tue, 19 Jan 2021 17:55:21 -0500 Subject: [PATCH] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5113cbee..c0e9368e 100644 --- a/install.sh +++ b/install.sh @@ -5,9 +5,9 @@ defaultVersion="latest" location=${LAB_LOCATION:-$defaultLocation} version=${LAB_VERSION:-$defaultVersion} -echo "Installing location $location" # Copyright MontFerret Team 2020 -version=$(curl -sI https://github.com/MontFerret/ferret/releases/latest | grep location | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r') +version=$(curl -sI https://github.com/MontFerret/ferret/releases/latest | awk '{print tolower($0)}' | grep location: | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r') +echo "Installing Ferret $version to $location" if [ ! $version ]; then echo "Failed while attempting to install ferret-cli. Please manually install:" @@ -168,4 +168,4 @@ getPackage() { } hasCli -getPackage \ No newline at end of file +getPackage