From: Mark Wooding Date: Wed, 29 Apr 2020 14:56:53 +0000 (+0100) Subject: bin/media-keys: Don't get upset if the `disorder playing' coprocess dies. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/8142c84910c50381c6c25caff486ed08859ba01d bin/media-keys: Don't get upset if the `disorder playing' coprocess dies. It did its job either way. --- diff --git a/bin/media-keys b/bin/media-keys index e2e6dc5..436828d 100755 --- a/bin/media-keys +++ b/bin/media-keys @@ -47,7 +47,7 @@ op-now-playing () { case $k in played) ;; *) bail "unexpected third-line token \`$k'" ;; esac read -pA t case $t[-1] in started | ok) st="" ;; paused) st=" (paused)" ;; esac - kill $kid + kill $kid >/dev/null 2>&1 || : artist=$(disorder part $track display artist) album=$(disorder part $track display album)