Blame SOURCES/0300-dracut-logger.sh-log-also-rest-of-line-without-retur.patch

64b87c
From 415d0c68ab1aaff7892e2187f8a18341bfeef796 Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Sat, 15 Aug 2015 15:42:51 +0200
64b87c
Subject: [PATCH] dracut-logger.sh: log also rest of line without return
64b87c
64b87c
---
64b87c
 dracut-logger.sh | 2 +-
64b87c
 1 file changed, 1 insertion(+), 1 deletion(-)
64b87c
64b87c
diff --git a/dracut-logger.sh b/dracut-logger.sh
64b87c
index 70b0da4..ffa5616 100755
64b87c
--- a/dracut-logger.sh
64b87c
+++ b/dracut-logger.sh
64b87c
@@ -367,7 +367,7 @@ dlog() {
64b87c
     if (( $# > 1 )); then
64b87c
         _do_dlog "$@"
64b87c
     else
64b87c
-        while read line; do
64b87c
+        while read line || [ -n "$line" ]; do
64b87c
             _do_dlog "$1" "$line"
64b87c
         done
64b87c
     fi