mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08:00
arch: install rust only if not found on local system
This commit is contained in:
@@ -188,8 +188,13 @@ install_on_bsd() {
|
||||
install_on_arch_linux() {
|
||||
pkg="$1"
|
||||
info "Detected ${YELLOW}${pkg}${NO_COLOR} on your system"
|
||||
confirm "${YELLOW}rust${NO_COLOR} is required to install ${GREEN}termscp${NO_COLOR}; would you like to proceed?"
|
||||
$pkg -S rust
|
||||
# check if rust is already installed
|
||||
has cargo
|
||||
CARGO=$?
|
||||
if [ $CARGO -ne 0 ]; then
|
||||
confirm "${YELLOW}rust${NO_COLOR} is required to install ${GREEN}termscp${NO_COLOR}; would you like to proceed?"
|
||||
$pkg -S rust
|
||||
fi
|
||||
info "Installing ${GREEN}termscp${NO_COLOR} AUR package…"
|
||||
$pkg -S termscp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user