mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
Merge pull request #2516 from kugelfuhr/kugelfuhr/fix-2514
Make lastline.sh ignore empty files
This commit is contained in:
commit
fe6afa621b
2
.github/checks/lastline.sh
vendored
2
.github/checks/lastline.sh
vendored
@ -9,7 +9,7 @@ nl='
|
||||
'
|
||||
nl=$'\n'
|
||||
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%x} =~ $r1 ]] || echo "$f"
|
||||
done`
|
||||
|
Loading…
Reference in New Issue
Block a user