mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
tools/check-setup_locale.sh: don't get caught by main in non-C files.
We're about to put one in configure. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
EXIT_CODE=0
|
||||
for FILE in $(git grep -lE 'int main\(' | grep -vE '^ccan/'); do
|
||||
for FILE in $(git grep -lE 'int main\(' | grep -vE '^ccan/' | grep '.c$'); do
|
||||
if ! grep -q 'setup_locale();' "${FILE}"; then
|
||||
echo "main(...) in ${FILE} does not call setup_locale() (see common/utils.h)"
|
||||
EXIT_CODE=1
|
||||
|
||||
Reference in New Issue
Block a user