shyiko / jabba

(cross-platform) Java Version Manager
2.97k stars 194 forks source link

Allow `install.sh` to work for Bash emulators on Windows #814

Closed Petersoj closed 2 years ago

Petersoj commented 2 years ago

The install.sh script exits with the Unsupported OS $OSTYPE message if the script is running in a bash emulator, like Git Bash, on Windows. This PR modifies the bash install script to recognize bash emulators on Windows so that the windows-amd64.exe build of jabba can be installed on Windows with bash. Also, this PR probably closes https://github.com/shyiko/jabba/issues/535.