summaryrefslogtreecommitdiff
path: root/build-aux/lint-h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-08 23:38:39 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-09 13:29:37 -0600
commita435e962cf55d1b9573c8df47da1eba4e84e3520 (patch)
tree3dd62f5eae5884f4d0852146e67433541f41df49 /build-aux/lint-h
parentb1e45f71eb61d3e40ffce176d0c75e033c673043 (diff)
make lint: Adopt shfmt
tusb_helpers.h.gen got a little manual fussing here
Diffstat (limited to 'build-aux/lint-h')
-rwxr-xr-xbuild-aux/lint-h6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/lint-h b/build-aux/lint-h
index 26ac13d..7459032 100755
--- a/build-aux/lint-h
+++ b/build-aux/lint-h
@@ -18,9 +18,9 @@ for filename in "$@"; do
guard=${dscname//'/'/'_'}
guard=${guard//'.'/'_'}
guard="_${guard^^}_"
- if ! { grep -Fxq "#ifndef ${guard}" "$filename" &&
- grep -Fxq "#define ${guard}" "$filename" &&
- grep -Fxq "#endif /* ${guard} */" "$filename"; }; then
+ if ! { grep -Fxq "#ifndef ${guard}" "$filename" &&
+ grep -Fxq "#define ${guard}" "$filename" &&
+ grep -Fxq "#endif /* ${guard} */" "$filename"; }; then
err "$filename" "does not have ${guard} guard"
fi
done