mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
[mpdstats_] remove "-q" from netcat call (Closes: 576)
This commit is contained in:
parent
37bb2b77f0
commit
d6ea0c926d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user