feature/update_install_script #19
3
install
3
install
@ -77,7 +77,7 @@ function install() {
|
|||||||
local link=$2
|
local link=$2
|
||||||
local temp_location="/tmp/$name"
|
local temp_location="/tmp/$name"
|
||||||
echo "Downloading $name..."
|
echo "Downloading $name..."
|
||||||
curl -fsSL -o "$temp_location" "$link"
|
curl -fsSL -o $temp_location $link
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
echo "Error: Failed to download $name" >&2
|
echo "Error: Failed to download $name" >&2
|
||||||
fail
|
fail
|
||||||
@ -92,6 +92,7 @@ function install() {
|
|||||||
echo "Error: Failed to install $name" >&2
|
echo "Error: Failed to install $name" >&2
|
||||||
fail
|
fail
|
||||||
fi
|
fi
|
||||||
|
rm $temp_location
|
||||||
}
|
}
|
||||||
|
|
||||||
# returns missing dependencies
|
# returns missing dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user