diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-09 18:43:00 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-09 18:43:00 -0600 |
commit | a113660a816ea76154ab6116d46a582ae5f4cd67 (patch) | |
tree | 3dd62f5eae5884f4d0852146e67433541f41df49 /build-aux/lint-h | |
parent | d053a0f6dffc575611324b81acaef0d1554bda6c (diff) | |
parent | a435e962cf55d1b9573c8df47da1eba4e84e3520 (diff) |
Merge branch 'lukeshu/tidy'
Diffstat (limited to 'build-aux/lint-h')
-rwxr-xr-x | build-aux/lint-h | 6 |
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 |