| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,10 @@ if [[ ! ${ARCH-} ]]; then | |||
| 49 | 49 | export ARCH | |
| 50 | 50 | fi | |
| 51 | 51 | ||
| 52 | - if [[ ! ${OS-} ]]; then | ||
| 52 | + # Windows predefines OS as Windows_NT for every process, so on a windows shell | ||
| 53 | + # the check below would always find a value and never call os(). That is not a | ||
| 54 | + # name this build knows, so it does not count as one the caller chose. | ||
| 55 | + if [[ ! ${OS-} || ${OS-} == "Windows_NT" ]]; then | ||
| 53 | 56 | OS=$(os) | |
| 54 | 57 | export OS | |
| 55 | 58 | fi | |
| Back | FazBrowse Home | New Git URL |
0 commit comments