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() {
|
parse() {
|
||||||
while read line; do
|
while read line || [ "$line" ]; do
|
||||||
[ "${line:0:1}" = '#' -o "${line:0:1}" = ';' ] && continue
|
[ "${line:0:1}" = '#' -o "${line:0:1}" = ';' ] && continue
|
||||||
line="${line## *}"
|
line="${line## *}"
|
||||||
[ -z "$line" ] && continue
|
[ -z "$line" ] && continue
|
||||||
|
Loading…
Reference in New Issue
Block a user