From a88b67a2a75082c20a9d0e417c9925175b75f9bf Mon Sep 17 00:00:00 2001 From: Cyril Galibern Date: Mon, 30 Oct 2023 13:44:33 +0100 Subject: [PATCH] [Solaris] drop 'node command logger' feature when gnu grep (ggrep) is absent 'node command logger' feature needs gnu grep, when absent drop feature. --- bin/om | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/om b/bin/om index b164d9727..978a37ca0 100755 --- a/bin/om +++ b/bin/om @@ -139,7 +139,11 @@ log() { fi if test -w $OSVC_COMMAND_LOG then - GREP=`which grep 2>/dev/null` + if [ "`uname`" = "SunOS" ] ; then + GREP=`which ggrep 2>/dev/null` + else + GREP=`which grep 2>/dev/null` + fi if test -x "$GREP" then echo "$OSVC_COMMAND_STRING" | $GREP -qE 'sec/|secret' && return