From 33ba6499309162bdf7db7aa8dc6e19ad4a22e61f Mon Sep 17 00:00:00 2001 From: moshix Date: Mon, 17 Apr 2023 04:40:20 -0500 Subject: [PATCH] Also check for FreeBSD and Windows --- nicparseMacos.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nicparseMacos.bash b/nicparseMacos.bash index c1df142..7641fae 100644 --- a/nicparseMacos.bash +++ b/nicparseMacos.bash @@ -39,10 +39,13 @@ unameOut="$(uname -s)" case "${unameOut}" in Linux*) ostype=Linux;; Darwin*) ostype=Mac;; - CYGWIN*) ostype=Cygwin;; - MINGW*) ostype=MinGw;; *) ostype="UNKNOWN:${unameOut}" esac +case "$OSTYPE" in + freebsd*) ostype=FreeBSD;; + win32*) ostype=Windows;; + *) ostype="UNKNOWN" +esac #echo ${ostype} }