From 67b57ef453d3402b256e5814a265c07b0dbc05c6 Mon Sep 17 00:00:00 2001 From: benn Date: Sat, 12 Mar 2022 10:35:41 +0100 Subject: [PATCH] Add support Sun based distros: OpenIndiana, Illumos, ... --- bashtop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashtop b/bashtop index 517bd4b..bb8b05c 100755 --- a/bashtop +++ b/bashtop @@ -41,9 +41,10 @@ case "$(uname -s)" in Darwin*) system=MacOS;; CYGWIN*) system=Cygwin;; MINGW*) system=MinGw;; + SunOS*) system=Sun;; *) system="Other" esac -if [[ ! $system =~ Linux|MacOS|BSD ]]; then +if [[ ! $system =~ Linux|MacOS|BSD|Sun ]]; then echo "This version of bashtop does not support $system platform." exit 1 fi