This commit is contained in:
Aziz Khan 2021-07-28 18:32:25 +02:00 committed by GitHub
commit a27036e5c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -455,6 +455,7 @@ lines() {
# 'read' exits with '1' when it sees EOL and
# without the added test, the line isn't sent
# to the loop.
lines=0
while IFS= read -r line || [ -n "$line" ]; do
lines=$((lines+1))
done < "$1"