From 24788fa894d3d59dec147b1af44a5fb738db473f Mon Sep 17 00:00:00 2001 From: veeso Date: Mon, 13 Dec 2021 17:57:52 +0100 Subject: [PATCH] remove temp archive once installation has finished --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 9d20025..c51b455 100755 --- a/install.sh +++ b/install.sh @@ -235,6 +235,7 @@ install_on_linux() { fi info "$msg" $sudo dpkg -i "${archive}" + rm -f ${archive} fi elif has rpm; then if [ "${ARCH}" != "x86_64" ]; then # It's okay on AUR; not on other distros @@ -256,6 +257,7 @@ install_on_linux() { fi info "$msg" $sudo rpm -U "${archive}" + rm -f ${archive} fi else try_with_cargo "No suitable installation method found for your Linux distribution; if you're running on Arch linux, please install an AUR package manager (such as yay). Currently only Arch, Debian based and Red Hat based distros are supported" @@ -335,6 +337,7 @@ install_cargo() { download "${rustup}" "https://sh.rustup.rs" chmod +x $rustup $rustup -y + rm -f ${archive} info "Rust installed with success" . $cargo_env fi