From c8380daee583264267c8b4570f75dc98b888994f Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 27 Jan 2020 08:30:54 -0600 Subject: [PATCH] Fixed mcstatus shim to actually call mc-monitor For #426 --- mcstatus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcstatus b/mcstatus index 7e712039..02bf395b 100755 --- a/mcstatus +++ b/mcstatus @@ -9,9 +9,9 @@ if [[ ${cmd} == "ping" ]]; then IFS=':' read -a parts <<< "${addr}" if [[ ${#parts[*]} -gt 1 ]]; then - echo mc-monitor status --host ${parts[0]} --port ${parts[1]} + exec mc-monitor status --host ${parts[0]} --port ${parts[1]} else - echo mc-monitor status --host ${parts[0]} + exec mc-monitor status --host ${parts[0]} fi else echo "ERROR can only shim the 'ping' command"