Shell 判断系统类型

case “$OSTYPE” in
linux*)
echo “Set Envs for linux”
;;
darwin*)
echo “Set Envs for Mac”
;;
*)
echo “Unsupported OS, Exit”
exit 100
;;
esac