Skip to content

Commit

Permalink
use directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikelee committed Dec 23, 2024
1 parent 29b26df commit c9746df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Contributing/Understanding-host-vitals.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ SELECT
path AS installed_path
FROM homebrew_packages
WHERE type = 'cask'
AND NOT EXISTS (SELECT 1 FROM file WHERE file.path LIKE CONCAT(homebrew_packages.path, '/%%') AND file.path LIKE '%.app%' LIMIT 1);
AND NOT EXISTS (SELECT 1 FROM file WHERE file.path LIKE CONCAT(homebrew_packages.path, '/%%') AND file.directory LIKE '%.app' LIMIT 1);
```
## software_macos_codesign
Expand Down
2 changes: 1 addition & 1 deletion server/service/osquery_utils/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ SELECT
path AS installed_path
FROM homebrew_packages
WHERE type = 'cask'
AND NOT EXISTS (SELECT 1 FROM file WHERE file.path LIKE CONCAT(homebrew_packages.path, '/%%%%') AND file.path LIKE '%%.app%%' LIMIT 1);
AND NOT EXISTS (SELECT 1 FROM file WHERE file.path LIKE CONCAT(homebrew_packages.path, '/%%%%') AND file.directory LIKE '%%.app' LIMIT 1);
`),
Platforms: []string{"darwin"},
DirectIngestFunc: directIngestSoftware,
Expand Down

0 comments on commit c9746df

Please sign in to comment.