Fix song_shorthand when songs have more than one '-' in their name
This commit is contained in:
parent
0fb45e6fa8
commit
6a284975fc
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1220,7 +1220,7 @@ getsong () {
|
|||
# Display Artist and Title on seperate lines.
|
||||
if [ "$song_shorthand" == "on" ]; then
|
||||
artist="${song/ -*}"
|
||||
song=${song/*- }
|
||||
song=${song/$artist - }
|
||||
|
||||
if [ "$song" != "$artist" ]; then
|
||||
prin "Artist: ${artist}"
|
||||
|
|
Loading…
Reference in a new issue