mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Display all lines of a list, even if there is no newline at the end
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
8084c4b2a3
commit
1b276a74fe
@ -222,7 +222,7 @@ Displaylist() {
|
|||||||
verbose=false
|
verbose=false
|
||||||
echo -e "Displaying $string:\n"
|
echo -e "Displaying $string:\n"
|
||||||
count=1
|
count=1
|
||||||
while IFS= read -r RD; do
|
while IFS= read -r RD || [ -n "${RD}" ]; do
|
||||||
echo " ${count}: ${RD}"
|
echo " ${count}: ${RD}"
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
done < "${listMain}"
|
done < "${listMain}"
|
||||||
|
Loading…
Reference in New Issue
Block a user