From 86711645a05f1f8f640d6b5a0c967d7f6f52b648 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 7 Jan 2019 09:07:24 +0200 Subject: [PATCH] song: Fix issues with broken newlines --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index d71f4c0a..5c9096d1 100755 --- a/neofetch +++ b/neofetch @@ -2470,7 +2470,7 @@ get_song() { *) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" || return ;; esac - IFS=$'\n' read -d "" -r artist album title <<< "$song" + IFS=$'\n' read -d "" -r artist album title <<< "${song//'\n'/$'\n'}" # Make sure empty tags are truly empty. artist="$(trim "$artist")"