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

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