mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-19 21:28:32 +02:00
Update install.sh
This commit is contained in:
parent
cd1b1cf5c7
commit
dd0e9ee8ae
@ -5,9 +5,9 @@ defaultVersion="latest"
|
|||||||
location=${LAB_LOCATION:-$defaultLocation}
|
location=${LAB_LOCATION:-$defaultLocation}
|
||||||
version=${LAB_VERSION:-$defaultVersion}
|
version=${LAB_VERSION:-$defaultVersion}
|
||||||
|
|
||||||
echo "Installing location $location"
|
|
||||||
# Copyright MontFerret Team 2020
|
# 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
|
if [ ! $version ]; then
|
||||||
echo "Failed while attempting to install ferret-cli. Please manually install:"
|
echo "Failed while attempting to install ferret-cli. Please manually install:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user