From 493f6fa66b3c9a6a1e1dd216f5445f5e21cbfa62 Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: May 11 2020 10:52:13 +0000 Subject: sysusers.generate-pre.sh: Fix parsing files that don't end with newline --- diff --git a/sysusers.generate-pre.sh b/sysusers.generate-pre.sh index 1d4b95f..6c481c3 100755 --- a/sysusers.generate-pre.sh +++ b/sysusers.generate-pre.sh @@ -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