Blame SOURCES/0302-base-dracut-lib.sh-vinfo-vwarn-handle-lines-without-.patch

64b87c
From ad565584a3b7d5795be80aee34307f1752a093b4 Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Tue, 18 Aug 2015 11:50:40 +0200
64b87c
Subject: [PATCH] base/dracut-lib.sh:vinfo/vwarn handle lines without newline
64b87c
64b87c
---
64b87c
 modules.d/99base/dracut-lib.sh | 4 ++--
64b87c
 1 file changed, 2 insertions(+), 2 deletions(-)
64b87c
64b87c
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
64b87c
index 3ffbb02..b6593a0 100755
64b87c
--- a/modules.d/99base/dracut-lib.sh
64b87c
+++ b/modules.d/99base/dracut-lib.sh
64b87c
@@ -67,13 +67,13 @@ else
64b87c
 fi
64b87c
 
64b87c
 vwarn() {
64b87c
-    while read line; do
64b87c
+    while read line || [ -n "$line" ]; do
64b87c
         warn $line;
64b87c
     done
64b87c
 }
64b87c
 
64b87c
 vinfo() {
64b87c
-    while read line; do
64b87c
+    while read line || [ -n "$line" ]; do
64b87c
         info $line;
64b87c
     done
64b87c
 }