aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-06-04 00:28:23 +0200
committerDavid Runge <dave@sleepmap.de>2016-06-04 00:28:23 +0200
commit728b6c6f881542649ca16fc30fd47cbe64b77b15 (patch)
tree03202b6df15ebaa928f56219a9a01476fea7945d /scripts
parenta731675d1563f8f0da0e17761cf9811adf267618 (diff)
downloaduenv-728b6c6f881542649ca16fc30fd47cbe64b77b15.tar.gz
uenv-728b6c6f881542649ca16fc30fd47cbe64b77b15.tar.bz2
uenv-728b6c6f881542649ca16fc30fd47cbe64b77b15.tar.xz
uenv-728b6c6f881542649ca16fc30fd47cbe64b77b15.zip
scripts/mpd-pulse: Fixing condition in which service mpd@.service will fail if started for localhost.0.5.1
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mpd-pulse4
1 files changed, 4 insertions, 0 deletions
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
}