mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-02-25 14:30:27 +00:00
Add 'reformat' rule
This commit is contained in:
parent
1a54cebb55
commit
56b1af7b14
4
Makefile
4
Makefile
@ -16,4 +16,8 @@ packs: out/odk-detection.sql out/odk-policy.sql out/odk-incident_response.sql
|
||||
out/odk-packs.zip: packs
|
||||
cd out && zip odk-packs.zip *.conf
|
||||
|
||||
.PHONY: reformat
|
||||
reformat:
|
||||
find . -type f -name "*.sql" | perl -ne 'chomp; system("cp $$_ /tmp/fix.sql && npx sql-formatter -l sqlite /tmp/fix.sql > $$_");'
|
||||
|
||||
all: out/odk-packs.zip
|
||||
|
Loading…
Reference in New Issue
Block a user