aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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
}