sysusers.generate-pre.sh: Fix parsing files that don't end with newline

This commit is contained in:
Christian Glombek 2020-05-11 12:52:13 +02:00
parent 265d91aff5
commit 493f6fa66b

View File

@ -50,7 +50,7 @@ fi
}
parse() {
while read line; do
while read line || [ "$line" ]; do
[ "${line:0:1}" = '#' -o "${line:0:1}" = ';' ] && continue
line="${line## *}"
[ -z "$line" ] && continue