Skip to content

Commit

Permalink
use xargs instead of find ... -exec
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Feb 12, 2024
1 parent 544b62e commit 9e58cf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ jobs:
name: smk
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Lint
run: nix develop --command find src/ -iname "*.h" -o -iname "*.c" -exec clang-format --dry-run -Werror -style=file -i {} \;
run: nix develop --command bash -c 'find src/ -iname "*.h" -o -iname "*.c" -print0 | xargs -0 -n1 -- clang-format --dry-run -Werror -style=file -i'

0 comments on commit 9e58cf8

Please sign in to comment.