From 4b818244be776132c88d99c05880573ccd933e6b Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 15 Mar 2023 19:05:30 -0600 Subject: [PATCH] Add "amd64" as a potential value for "uname -m" This accommodates FreeBSD and perhaps others. --- docs/installer.sh | 2 +- shell-integration/ssh/kitten | 2 +- shell-integration/ssh/kitty | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installer.sh b/docs/installer.sh index a598b2cda..8afa12c1b 100644 --- a/docs/installer.sh +++ b/docs/installer.sh @@ -46,7 +46,7 @@ detect_os() { 'Linux') OS="linux" case "$(command uname -m)" in - x86_64) arch="x86_64";; + amd64|x86_64) arch="x86_64";; aarch64*) arch="arm64";; armv8*) arch="arm64";; i386) arch="i686";; diff --git a/shell-integration/ssh/kitten b/shell-integration/ssh/kitten index fe21fbb21..ae0fe1f79 100755 --- a/shell-integration/ssh/kitten +++ b/shell-integration/ssh/kitten @@ -60,7 +60,7 @@ else fi case "$(command uname -m)" in - x86_64) arch="amd64";; + amd64|x86_64) arch="amd64";; aarch64*) arch="arm64";; armv8*) arch="arm64";; arm) arch="arm";; diff --git a/shell-integration/ssh/kitty b/shell-integration/ssh/kitty index be0c81b2c..304897537 100755 --- a/shell-integration/ssh/kitty +++ b/shell-integration/ssh/kitty @@ -75,7 +75,7 @@ fi if [ "$OS" = "linux" ]; then case "$(command uname -m)" in - x86_64) arch="x86_64";; + amd64|x86_64) arch="x86_64";; aarch64*) arch="arm64";; armv8*) arch="arm64";; i386) arch="i686";;