From 5d2abde9ee05014e17007bbf870a878ff11e890b Mon Sep 17 00:00:00 2001 From: Thomas Koch Date: Wed, 10 Apr 2019 17:45:25 +0200 Subject: [PATCH] tlp-stat: fix formatted recommentdation output. --- tlp-stat.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tlp-stat.in b/tlp-stat.in index 9f459d6e..ba2ba1bf 100644 --- a/tlp-stat.in +++ b/tlp-stat.in @@ -1057,7 +1057,9 @@ if [ "$show_bat" = "1" ] || [ "$show_all" = "1" ]; then if [ -n "$reout" ]; then echo "+++ Recommendations" - printf "%s" $reout | sed -r 's/^/\* /' + # shellcheck disable=SC2059 + # don't change to %s, $reout contains blanks and \n! + printf "$reout" | sed -r 's/^/\* /' echo fi