From c7892a70c73da8dc4e107795e04aaad5c842ff2b Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Thu, 26 Jan 2017 09:05:24 +0100 Subject: [PATCH] Song: Don't print empty song with song_shorthand --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 2aab713f..402033ce 100755 --- a/neofetch +++ b/neofetch @@ -1340,7 +1340,7 @@ get_song() { [[ "$(trim "$song")" == "-" ]] && unset -v song # Display Artist and Title on separate lines. - if [[ "$song_shorthand" == "on" ]]; then + if [[ "$song_shorthand" == "on" && "$song" ]]; then artist="${song/ -*}" song="${song/$artist - }"