Skip to content

Commit

Permalink
Merge pull request matryer#1473 from dAnjou/patch-1
Browse files Browse the repository at this point in the history
Spotify Now Playing (via spotctl): ignore errors
  • Loading branch information
matryer authored Dec 11, 2020
2 parents 9f63d5a + 3f99e42 commit 2006436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Music/spotctl.10s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2006436

Please sign in to comment.