From a67fd6fa5b3ff851e988976a070c1d5edb03ea26 Mon Sep 17 00:00:00 2001 From: Thomas Mieslinger Date: Wed, 10 Nov 2021 15:05:43 +0100 Subject: [PATCH] detect Solaris derivates and add /usr/gnu/bin to PATH --- getssl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/getssl b/getssl index fc61831..8aac6ba 100755 --- a/getssl +++ b/getssl @@ -1824,6 +1824,14 @@ get_os() { # function to get the current Operating System os="cygwin" elif [[ ${uname_res:0:5} == "MINGW" ]]; then os="mingw" + elif [[ ${uname_res} == "SunOS" ]]; then + os="solaris" + if [ -d /usr/gnu/bin ]; then + export PATH=/usr/gnu/bin:$PATH + else + echo "Path with required GNU commands not found, please install /usr/gnu/bin" + exit 1 + fi else os="unknown" fi