detect windows and cygwin
This commit is contained in:
parent
4a5daff432
commit
2197cae12e
1 changed files with 7 additions and 0 deletions
|
@ -25,3 +25,10 @@ fi
|
|||
if [ "$(uname -s)" = "Haiku" ] && [ "$system_type" = "unknown" ]; then
|
||||
system_type="haiku"
|
||||
fi
|
||||
command -v winver.exec >>/dev/null
|
||||
if [ "$?" -eq 0 ] && ["$system_type" = "unknown" ]; then
|
||||
system_type="windows"
|
||||
if [ "$(uname -o)" = "Cygwin" ]; then
|
||||
subtype="cygwin"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue