Skip to content

Commit cce47c5

Browse files
janniklasroseIsaac
andcommitted
Recognize Windows POSIX shell environments
Recognize MINGW, MSYS, and Cygwin names with their corresponding drive mappings. Preserve custom target selection from the parent branch. Map i686 to the existing _386 naming convention; current releases do not publish that archive. Closes #71 Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 78bce0f commit cce47c5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎install.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ Darwin)
2323
FILE="${FILE}_darwin"
2424
TARGET="/usr/local/bin"
2525
;;
26-
MINGW64_NT)
26+
MINGW64_NT|MINGW32_NT|MSYS_NT)
2727
FILE="${FILE}_windows"
2828
TARGET="/c/Windows"
2929
;;
30+
CYGWIN_NT)
31+
FILE="${FILE}_windows"
32+
TARGET="/cygdrive/c/Windows"
33+
;;
3034
*)
3135
echo "Unknown operating system: $OS"
3236
exit 1
@@ -70,7 +74,7 @@ fi
7074
# Include architecture in file name.
7175
ARCH="$(uname -m)"
7276
case "$ARCH" in
73-
i386)
77+
i386|i686)
7478
FILE="${FILE}_386"
7579
;;
7680
x86_64)

0 commit comments

Comments
 (0)