fix grep which may get the wrong line

This commit is contained in:
speedie 2022-11-22 17:18:34 +01:00
parent 13096a7cbe
commit 38617bccf6

View file

@ -192,7 +192,7 @@ PRINT() {
# album # album
if [ "$ITEM9_DISPLAY_ALBUM" = "true" ]; then if [ "$ITEM9_DISPLAY_ALBUM" = "true" ]; then
if [ "$(cmus-remote -C status | grep "tag album")" != "" ]; then if [ "$(cmus-remote -C status | grep "tag album")" != "" ]; then
MUSIC_ALBUM="$(cmus-remote -C status | grep "tag album" | head -n 1 | sed "s|\&|stellar_amp|g; s/tag album //g")" MUSIC_ALBUM="$(cmus-remote -C status | grep "tag album " | head -n 1 | sed "s|\&|stellar_amp|g; s/tag album //g")"
fi fi
fi fi