From d6ea0c926da27fb11fb1d807bc06c7faba5623d2 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sat, 22 Oct 2016 13:11:09 +0200 Subject: [PATCH] [mpdstats_] remove "-q" from netcat call (Closes: 576) --- plugins/mpd/mpdstats_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mpd/mpdstats_ b/plugins/mpd/mpdstats_ index ec78ad4e..b54edfdc 100755 --- a/plugins/mpd/mpdstats_ +++ b/plugins/mpd/mpdstats_ @@ -90,7 +90,7 @@ do_autoconf () { exit 1 fi - echo version | $NCBIN -q 2 $MPDHOST $MPDPORT 1>/dev/null 2>&1 + echo version | "$NCBIN" "$MPDHOST" "$MPDPORT" 1>/dev/null 2>&1 if [ "$?" != 0 ] ; then echo "no (connection failed)" exit 1 @@ -129,6 +129,6 @@ $ACTION.label $ACTION" ;; *) printf "$ACTION.value " - echo stats | $NCBIN -q 2 $MPDHOST $MPDPORT | awk " /^${ACTION}/ {print \$2}" + echo stats | "$NCBIN" "$MPDHOST" "$MPDPORT" | awk "/^${ACTION}:/ {print \$2}" ;; esac