Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex authored Jan 19, 2021
1 parent cd1b1cf commit dd0e9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down Expand Up @@ -168,4 +168,4 @@ getPackage() {
}

hasCli
getPackage
getPackage

0 comments on commit dd0e9ee

Please sign in to comment.