Make lastline.sh ignore empty files. Fixes #2514.

This commit is contained in:
Kugel Fuhr
2024-09-12 09:10:37 +02:00
parent aff8248341
commit 36a810cdb2
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ nl='
' '
nl=$'\n' nl=$'\n'
r1="${nl}$" r1="${nl}$"
FILES=`find $CHECK_PATH -type f \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.mac -o -name \*.asm -o -name \*.sgml \) -print | while read f; do FILES=`find $CHECK_PATH -type f -size +0 \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.mac -o -name \*.asm -o -name \*.sgml \) -print | while read f; do
t=$(tail -c2 $f; printf x) t=$(tail -c2 $f; printf x)
[[ ${t%x} =~ $r1 ]] || echo "$f" [[ ${t%x} =~ $r1 ]] || echo "$f"
done` done`

2
.gitignore vendored
View File

@@ -9,4 +9,4 @@
/cc65.zip /cc65.zip
/util/atari/*.exe /util/atari/*.exe
/util/gamate/*.exe /util/gamate/*.exe
targettest/cbm/cbmread.prg