mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-06-03 14:22:33 +02:00
Merge 3b63450491
into 26bc7e8d6c
This commit is contained in:
commit
a27036e5c4
|
@ -455,6 +455,7 @@ lines() {
|
||||||
# 'read' exits with '1' when it sees EOL and
|
# 'read' exits with '1' when it sees EOL and
|
||||||
# without the added test, the line isn't sent
|
# without the added test, the line isn't sent
|
||||||
# to the loop.
|
# to the loop.
|
||||||
|
lines=0
|
||||||
while IFS= read -r line || [ -n "$line" ]; do
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
lines=$((lines+1))
|
lines=$((lines+1))
|
||||||
done < "$1"
|
done < "$1"
|
||||||
|
|
Loading…
Reference in a new issue