From cb33ba114ef28954c8a3b586a00ed7466115ac34 Mon Sep 17 00:00:00 2001 From: veeso Date: Tue, 25 Oct 2022 18:09:06 +0200 Subject: [PATCH] fixed check on aarch64 --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6a68bb2..8e0607d 100755 --- a/install.sh +++ b/install.sh @@ -153,11 +153,6 @@ detect_arch() { arch="arm" fi - if [ "${arch}" != "x86_64" ]; then - error "Unsupported arch ${arch}" - return 1 - fi - printf '%s' "${arch}" } @@ -269,8 +264,11 @@ install_on_macos() { # get homebrew formula name if [ "${ARCH}" == "x86_64" ]; then FORMULA="termscp" - else + elif [ "$ARCH" == "aarch64" ] then FORMULA="termscp-m1" + else + error "unsupported arch: $ARCH" + exit 1 fi if has termscp; then info "Upgrading ${GREEN}termscp${NO_COLOR}…"