Fixing install script

This commit is contained in:
david 2024-05-20 09:26:10 +02:00
parent e718c60a22
commit c00e159842

View File

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