Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Output \n as newlines on console
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tbleher committed Apr 13, 2024
1 parent a794912 commit 1136016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LogosLinuxInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1136016

Please sign in to comment.