spotify: don't sort clients when cleaning up

It seems that the ID is not strictly increasing.
This commit is contained in:
Vincent Bernat 2021-08-06 14:33:31 +02:00
parent 45e503f017
commit 22262cce1c

View file

@ -2,6 +2,5 @@
pactl list short clients \ pactl list short clients \
| awk '($3 == "spotify") {print $1}' \ | awk '($3 == "spotify") {print $1}' \
| sort -n \
| head -n-1 \ | head -n-1 \
| xargs -rn1 pw-cli destroy | xargs -rn1 pw-cli destroy