mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 16:33:19 +00:00
Moved a constant expression out of a loop.
This commit is contained in:
parent
17b9f9c2a8
commit
1ea27c35d0
3
.github/checks/lastline.sh
vendored
3
.github/checks/lastline.sh
vendored
@ -8,8 +8,9 @@ cd $SCRIPT_PATH/../../
|
||||
nl='
|
||||
'
|
||||
nl=$'\n'
|
||||
r1="${nl}$"
|
||||
FILES=`find $CHECK_PATH -type f \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.asm -o -name \*.sgml \) -print | while read f; do
|
||||
t=$(tail -c2 $f; printf x); r1="${nl}$";
|
||||
t=$(tail -c2 $f; printf x)
|
||||
[[ ${t%x} =~ $r1 ]] || echo "$f"
|
||||
done`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user