mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-24 08:36:37 +00:00
Return Windows as OS when under Git Bash (?) #32
This commit is contained in:
parent
494584b6fd
commit
818d7c81c7
@ -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
|
||||||
|
|
||||||
|
4
main.sh
4
main.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user