Skip to content

Commit 9b61639

Browse files
committed
addressed bugbot concerns
1 parent 4014cf3 commit 9b61639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/installer/goods/support/host-support-bundle.tmpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ spec:
394394
- run:
395395
collectorName: "ps-detect-antivirus-and-security-tools"
396396
command: "sh"
397-
args: ["-c", "ps -eo args= | grep -E 'clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp' | sed -E 's/.*(clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp).*/\\1/' | sort -u"]
397+
args: ["-c", "if command -v pgrep >/dev/null 2>&1; then pgrep -afi 'clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp' | grep -Eo 'clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp' | sort -u; else ps -eo args= | awk -v pat=\"(clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp)\" 'BEGIN{ IGNORECASE=1 } /(awk|grep|ps|sh -c)/{ next } { line=$0; while (match(line, pat)) { print substr(line, RSTART, RLENGTH); line=substr(line, RSTART+RLENGTH) } }' | sort -u; fi"]
398398
- systemPackages:
399399
collectorName: security-tools-packages
400400
ubuntu:

0 commit comments

Comments
 (0)