test: Improve bash fmt test

This catches slightly more issues.
This commit is contained in:
James Shubin
2023-12-12 00:13:06 -05:00
parent a6b6aa570e
commit 1d886f2995

View File

@@ -22,8 +22,8 @@ bad_files=$(
echo "$M"
fi
for i in $(find_files); do
# search for more than one leading space, to ensure we use tabs
if grep -q '^ ' "$i"; then
# search for at least one leading space, to ensure we use tabs
if grep -q '^ ' "$i"; then
echo "$i"
fi