tweak - normalise unix-like identifiers to support git bash for windows (#2100)

Co-authored-by: Steven Martin <smartin@clearcom.com>
This commit is contained in:
Steven Martin 2025-10-31 16:41:44 +00:00 committed by Dax Raad
parent 1b8af9adf8
commit 02be4e53d5

12
install
View file

@ -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