From 3f99e42d65b9c34032f73e7b60225fa85194caf9 Mon Sep 17 00:00:00 2001 From: Max Ludwig Date: Fri, 31 Jul 2020 14:01:19 +0200 Subject: [PATCH] Spotify Now Playing (via spotctl): ignore errors Sometimes spotctl gets a weird response from Spotify even though everything is fine, this can just be ignored --- Music/spotctl.10s.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Music/spotctl.10s.sh b/Music/spotctl.10s.sh index 7a4908e2e..593e505f8 100755 --- a/Music/spotctl.10s.sh +++ b/Music/spotctl.10s.sh @@ -33,7 +33,7 @@ case "$1" in exit esac -state=$(spotctl status | sed -n 1p | grep -o playing || echo paused) +state=$(spotctl status 2> /dev/null | sed -n 1p | grep -o playing || echo paused) if [ "$state" = "playing" ]; then status=$(spotctl status)