xxxxxxxxxx
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
elif [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OS X
elif [[ "$OSTYPE" == "cygwin" ]]; then
# WSL
elif [[ "$OSTYPE" == "msys" ]]; then
# Git Bash (mingw)
elif [[ "$OSTYPE" == "freebsd"* ]]; then
# FreeBSD
else
# OS not detected or something like SteamOS
fi