clear music status on end of playlist

This commit is contained in:
2021-05-09 18:18:57 +02:00
parent 6fa4b3dce0
commit 222659f325

View File

@ -1,5 +1,5 @@
#!/bin/sh
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
if mpc status | grep -q '\[paused\]' || [ "$(mpc status | wc -l)" -eq 1 ]; then
printf '\n'
exit
fi