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

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