diff --git a/install b/install index 4260ee4..8821855 100755 --- a/install +++ b/install @@ -77,7 +77,7 @@ function install() { local link=$2 local temp_location="/tmp/$name" echo "Downloading $name..." - curl -fsSL -o "$temp_location" "$link" + curl -fsSL -o $temp_location $link if [[ $? != 0 ]]; then echo "Error: Failed to download $name" >&2 fail @@ -92,6 +92,7 @@ function install() { echo "Error: Failed to install $name" >&2 fail fi + rm $temp_location } # returns missing dependencies