1
0
mirror of https://github.com/moshix/mvs.git synced 2026-03-01 01:09:38 +00:00

fix ostype determination

This commit is contained in:
moshix
2023-04-17 04:44:23 -05:00
committed by GitHub
parent 33ba649930
commit 8b28317fdc

View File

@@ -35,13 +35,12 @@ reset=`tput sgr0`
}
os_type() {
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) ostype=Linux;;
Darwin*) ostype=Mac;;
CYGWIN*) ostype=Cygwin;;
MINGW*) ostype=MinGw;;
*) ostype="UNKNOWN:${unameOut}"
case "$OSTYPE" in
freebsd*) ostype=FreeBSD;;
win32*) ostype=Windows;;
linux*) ostype=Linux;;
darwin*) ostype=Mac;;
*) ostype="UNKNOWN"
esac
#echo ${ostype}
}