Song: Don't print empty song with song_shorthand
This commit is contained in:
parent
e66b63d0f3
commit
c7892a70c7
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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 - }"
|
||||
|
||||
|
|
Loading…
Reference in a new issue