mirror of
https://github.com/veeso/termscp.git
synced 2026-07-27 18:11:06 +02:00
remove temp archive once installation has finished
This commit is contained in:
committed by
Christian Visintin
parent
dab98f4292
commit
24788fa894
@@ -235,6 +235,7 @@ install_on_linux() {
|
|||||||
fi
|
fi
|
||||||
info "$msg"
|
info "$msg"
|
||||||
$sudo dpkg -i "${archive}"
|
$sudo dpkg -i "${archive}"
|
||||||
|
rm -f ${archive}
|
||||||
fi
|
fi
|
||||||
elif has rpm; then
|
elif has rpm; then
|
||||||
if [ "${ARCH}" != "x86_64" ]; then # It's okay on AUR; not on other distros
|
if [ "${ARCH}" != "x86_64" ]; then # It's okay on AUR; not on other distros
|
||||||
@@ -256,6 +257,7 @@ install_on_linux() {
|
|||||||
fi
|
fi
|
||||||
info "$msg"
|
info "$msg"
|
||||||
$sudo rpm -U "${archive}"
|
$sudo rpm -U "${archive}"
|
||||||
|
rm -f ${archive}
|
||||||
fi
|
fi
|
||||||
else
|
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"
|
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"
|
download "${rustup}" "https://sh.rustup.rs"
|
||||||
chmod +x $rustup
|
chmod +x $rustup
|
||||||
$rustup -y
|
$rustup -y
|
||||||
|
rm -f ${archive}
|
||||||
info "Rust installed with success"
|
info "Rust installed with success"
|
||||||
. $cargo_env
|
. $cargo_env
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user