From 31203d76ce76fb7c414d197f46c2f09ed6a98808 Mon Sep 17 00:00:00 2001 From: veeso Date: Tue, 15 Mar 2022 11:14:54 +0100 Subject: [PATCH] install.sh m1 macos --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c63c929..835d5c7 100755 --- a/install.sh +++ b/install.sh @@ -266,13 +266,19 @@ install_on_linux() { install_on_macos() { if has brew; then + # get homebrew formula name + if [ "${ARCH}" != "x86_64" ]; then + FORMULA="termscp" + else + FORMULA="termscp-m1" + fi if has termscp; then info "Upgrading ${GREEN}termscp${NO_COLOR}…" # The OR is used since someone could have installed via cargo previously - brew update && brew upgrade termscp || brew install veeso/termscp/termscp + brew update && brew upgrade ${FORMULA} || brew install veeso/termscp/${FORMULA} else info "Installing ${GREEN}termscp${NO_COLOR}…" - brew install veeso/termscp/termscp + brew install veeso/termscp/${FORMULA} fi else try_with_cargo "brew is missing on your system; please install it from "