Skip to content

Commit

Permalink
[Solaris] drop 'node command logger' feature when gnu grep (ggrep) is…
Browse files Browse the repository at this point in the history
… absent

'node command logger' feature needs gnu grep, when absent drop feature.
  • Loading branch information
cgalibern committed Oct 30, 2023
1 parent dfb2b94 commit a88b67a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/om
Expand Up @@ -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
Expand Down

0 comments on commit a88b67a

Please sign in to comment.