From 728b6c6f881542649ca16fc30fd47cbe64b77b15 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 4 Jun 2016 00:28:23 +0200 Subject: scripts/mpd-pulse: Fixing condition in which service mpd@.service will fail if started for localhost. --- scripts/mpd-pulse | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/mpd-pulse b/scripts/mpd-pulse index afb33e0..b1f4641 100755 --- a/scripts/mpd-pulse +++ b/scripts/mpd-pulse @@ -10,6 +10,8 @@ function connect () if [[ $1 != "${host}"* ]] && [[ $1 != localhost* ]]; then echo "Connecting with host \"$1\" using pax11publish." pax11publish -S $1 -e + else + exit 0 fi } @@ -18,6 +20,8 @@ function disconnect () if [[ $1 != "${host}"* ]] && [[ $1 != localhost* ]]; then echo "Disconnecting from host \"$1\" using pax11publish." pax11publish -r + else + exit 0 fi } -- cgit v1.2.3