ci: auto-fix missing newline at end of file

This commit is contained in:
Thales Macedo Garitezi 2024-06-14 10:11:16 -03:00
parent b74828d7ea
commit 8c4a67de31
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ n=0
while read -r file; do
if ! nl_at_eof "$file"; then
echo "nl_at_eof: $file"
# shellcheck disable=SC1003
sed -i -e '$a\' "$file"
n=$(( n + 1 ))
fi
done < <(git ls-files)