sysusers.generate-pre.sh: Fix parsing files that don't end with newline
This commit is contained in:
parent
265d91aff5
commit
493f6fa66b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user