mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
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:
12
install
12
install
@@ -10,10 +10,14 @@ NC='\033[0m' # No Color
|
|||||||
|
|
||||||
requested_version=${VERSION:-}
|
requested_version=${VERSION:-}
|
||||||
|
|
||||||
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
raw_os=$(uname -s)
|
||||||
if [[ "$os" == "darwin" ]]; then
|
os=$(echo "$raw_os" | tr '[:upper:]' '[:lower:]')
|
||||||
os="darwin"
|
# Normalize various Unix-like identifiers
|
||||||
fi
|
case "$raw_os" in
|
||||||
|
Darwin*) os="darwin" ;;
|
||||||
|
Linux*) os="linux" ;;
|
||||||
|
MINGW*|MSYS*|CYGWIN*) os="windows" ;;
|
||||||
|
esac
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
|
||||||
if [[ "$arch" == "aarch64" ]]; then
|
if [[ "$arch" == "aarch64" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user