From 8c4a67de31baee6bec2041d1ad1116f184e85f24 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Fri, 14 Jun 2024 10:11:16 -0300 Subject: [PATCH] ci: auto-fix missing newline at end of file --- scripts/check-nl-at-eof.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/check-nl-at-eof.sh b/scripts/check-nl-at-eof.sh index 8ca110c81..546ed7937 100755 --- a/scripts/check-nl-at-eof.sh +++ b/scripts/check-nl-at-eof.sh @@ -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)