Make mpc stop optional

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-07-22 15:12:32 +02:00
parent 10db95f81a
commit 006e8978d1
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -14,7 +14,7 @@ function log() {
} }
# Stop MPD playback when mpc client was found # Stop MPD playback when mpc client was found
(which mpc >/dev/null 2>&1) && mpc stop (which mpc >/dev/null 2>&1) && mpc stop || true
# Disable systemd user services # Disable systemd user services
for svc in "${systemd_services[@]}"; do for svc in "${systemd_services[@]}"; do