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

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