clear music status on end of playlist

This commit is contained in:
Alexander Bocken 2021-05-09 18:18:57 +02:00
parent 6fa4b3dce0
commit 222659f325
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

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