Return Windows as OS when under Git Bash (?) #32

This commit is contained in:
Kevin van Zonneveld 2016-06-22 09:52:38 +02:00
parent 494584b6fd
commit 818d7c81c7
2 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,7 @@ Please see the [FAQ.md](./FAQ.md) file.
- [@jokajak](https://github.com/jokajak) (documentation) - [@jokajak](https://github.com/jokajak) (documentation)
- [Gabriel A. Devenyi](http://staticwave.ca/) (feedback) - [Gabriel A. Devenyi](http://staticwave.ca/) (feedback)
- [@bravo-kernel](https://github.com/bravo-kernel) (feedback) - [@bravo-kernel](https://github.com/bravo-kernel) (feedback)
- [@skanga](https://github.com/skanga) (feedback)
## License ## License

View File

@ -30,6 +30,10 @@ __os="Linux"
if [[ "${OSTYPE:-}" == "darwin"* ]]; then if [[ "${OSTYPE:-}" == "darwin"* ]]; then
__os="OSX" __os="OSX"
fi fi
if [[ "${OSTYPE:-}" == "msys"* ]]; then
# This could accomodate Git Bash but we're welcoming more input at https://github.com/kvz/bash3boilerplate/issues/32
__os="Windows"
fi
# Define the environment variables (and their defaults) that this script depends on # Define the environment variables (and their defaults) that this script depends on
LOG_LEVEL="${LOG_LEVEL:-6}" # 7 = debug -> 0 = emergency LOG_LEVEL="${LOG_LEVEL:-6}" # 7 = debug -> 0 = emergency