]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh:vinfo/vwarn handle lines without newline
authorHarald Hoyer <harald@redhat.com>
Tue, 18 Aug 2015 09:50:40 +0000 (11:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 18 Aug 2015 09:55:05 +0000 (11:55 +0200)
modules.d/99base/dracut-lib.sh

index 3ffbb02172491097856791ef8b24b9cf82d1a023..b6593a067ab2adcee862917f44cc9f5f2d324942 100755 (executable)
@@ -67,13 +67,13 @@ else
 fi
 
 vwarn() {
-    while read line; do
+    while read line || [ -n "$line" ]; do
         warn $line;
     done
 }
 
 vinfo() {
-    while read line; do
+    while read line || [ -n "$line" ]; do
         info $line;
     done
 }