1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-17 21:18:37 +02:00

Update install.sh

This commit is contained in:
Tim Voronov 2021-01-19 17:55:21 -05:00 committed by GitHub
parent cd1b1cf5c7
commit dd0e9ee8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
getPackage