From 36b48a44ac1f0c9593a4abdf1d21980a2bfaee22 Mon Sep 17 00:00:00 2001 From: Steven Martin <111119082+S-A-Martin@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:41:44 +0000 Subject: [PATCH] tweak - normalise unix-like identifiers to support git bash for windows (#2100) Co-authored-by: Steven Martin --- install | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install b/install index ed3171c621..42ae846efd 100755 --- a/install +++ b/install @@ -10,10 +10,14 @@ NC='\033[0m' # No Color requested_version=${VERSION:-} -os=$(uname -s | tr '[:upper:]' '[:lower:]') -if [[ "$os" == "darwin" ]]; then - os="darwin" -fi +raw_os=$(uname -s) +os=$(echo "$raw_os" | tr '[:upper:]' '[:lower:]') +# Normalize various Unix-like identifiers +case "$raw_os" in + Darwin*) os="darwin" ;; + Linux*) os="linux" ;; + MINGW*|MSYS*|CYGWIN*) os="windows" ;; + esac arch=$(uname -m) if [[ "$arch" == "aarch64" ]]; then