fix(scan): fix yum-ps warning Failed to exec which -bash (#1166)
This commit is contained in:
@@ -888,6 +888,7 @@ func (l *base) parseGrepProcMap(stdout string) (soPaths []string) {
|
||||
scanner := bufio.NewScanner(strings.NewReader(stdout))
|
||||
for scanner.Scan() {
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
line = strings.Split(line, ";")[0]
|
||||
soPaths = append(soPaths, line)
|
||||
}
|
||||
return soPaths
|
||||
|
||||
Reference in New Issue
Block a user