1
0
mirror of https://github.com/moshix/mvs.git synced 2026-01-28 04:27:46 +00:00

fix OSTYPE determination

This commit is contained in:
moshix
2023-04-17 04:45:20 -05:00
committed by GitHub
parent 8b28317fdc
commit 6c91872712

View File

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