From 1be65bc1dc151db7fed7b9c2386f2c5a36bf5cbb Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Fri, 19 Jan 2024 11:53:46 +0100 Subject: [PATCH] add arch check when downloading binary --- install-wizard.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-wizard.sh b/install-wizard.sh index 23dc24d..b83d3dd 100755 --- a/install-wizard.sh +++ b/install-wizard.sh @@ -4,7 +4,6 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PLATFORM=$(uname -s) action=$1 - # set up exit trap function finish { exit_code=$? @@ -58,7 +57,11 @@ function install_with_brew() { function download_binary() { mkdir -p $CURRENT_DIR/bin - # TODO check architecture + + if [[ ! "$(uname -m)" == "x86_64" ]]; then + echo "tmux-fingers binaries are only provided for x86_64 architecture." + exit 1 + fi echo "Getting latest release..."