File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ out/packs.zip: packs out/osquery.conf
30
30
31
31
.PHONY : reformat
32
32
reformat :
33
- find . -type f -name " *.sql" | perl -ne ' chomp; system("cp $$_ /tmp/fix.sql && npx sql-formatter -l sqlite /tmp/ fix.sql > $$_"); '
33
+ find . -type f -name " *.sql" -exec npx sql-formatter -l sqlite -- fix {} \;
34
34
35
35
.PHONY : reformat-updates
36
36
reformat-updates :
37
- git status -s | awk ' { print $$2 }' | grep " .sql" | perl -ne ' chomp; print("$$_\n"); system("cp $$_ /tmp/fix.sql && npx sql-formatter -l sqlite /tmp/ fix.sql > $$_"); '
37
+ git status -s | awk ' { print $$2 }' | grep " .sql" | xargs -n1 npx sql-formatter -l sqlite -- fix
38
38
39
39
.PHONY : detect
40
40
detect : ./out/osqtool-$(ARCH ) -$(OSQTOOL_VERSION )
@@ -79,4 +79,3 @@ verify: ./out/osqtool-$(ARCH)-$(OSQTOOL_VERSION)
79
79
$(SUDO ) ./out/osqtool-$(ARCH ) -$(OSQTOOL_VERSION ) --workers 1 --max-results=0 --max-query-duration=16s --max-total-daily-duration=2h30m --max-query-daily-duration=1h verify detection
80
80
81
81
all : out/packs.zip
82
-
You can’t perform that action at this time.
0 commit comments