Song: Don't print empty song with song_shorthand
This commit is contained in:
parent
e66b63d0f3
commit
c7892a70c7
2
neofetch
2
neofetch
|
@ -1340,7 +1340,7 @@ get_song() {
|
||||||
[[ "$(trim "$song")" == "-" ]] && unset -v song
|
[[ "$(trim "$song")" == "-" ]] && unset -v song
|
||||||
|
|
||||||
# Display Artist and Title on separate lines.
|
# Display Artist and Title on separate lines.
|
||||||
if [[ "$song_shorthand" == "on" ]]; then
|
if [[ "$song_shorthand" == "on" && "$song" ]]; then
|
||||||
artist="${song/ -*}"
|
artist="${song/ -*}"
|
||||||
song="${song/$artist - }"
|
song="${song/$artist - }"
|
||||||
|
|
||||||
|
|
Reference in New Issue