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

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