From 1136016edbd64ed185ec0f1330a90f08952ec5e4 Mon Sep 17 00:00:00 2001 From: Thomas Bleher Date: Sat, 13 Apr 2024 08:19:16 +0200 Subject: [PATCH] Output \n as newlines on console cli_msg got passed strings with \n in it. This was printed literally to the console, which was not really readable. Convert \n to real newlines, so the console output is more readable. --- LogosLinuxInstaller.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogosLinuxInstaller.sh b/LogosLinuxInstaller.sh index b399b0d..42fc714 100755 --- a/LogosLinuxInstaller.sh +++ b/LogosLinuxInstaller.sh @@ -173,7 +173,7 @@ no-diag-msg() { die; } cli_msg() { - printf "%s\n" "${1}" + printf "%s\n" "${1}" | sed 's/\\n/\n/g' } gtk_info() { zenity --info --width=300 --height=200 --text="$*" --title='Information'