From f99cee59cb56d96de39372f2ffd12035fe4fae01 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 3 Jun 2022 09:25:48 +0200 Subject: [PATCH] M #5855: Typo --- src/mad/sh/scripts_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 5928af9d26..034e53517c 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -1228,9 +1228,9 @@ function send_to_monitor { mon_conf=$ONE_LOCATION/etc/monitord.conf fi - mon_address=$(cat "$mon_conf" | grep MONITOR_ADDRESS | cut -d , -f1 | \ + mon_address=$(cat $mon_conf | grep MONITOR_ADDRESS | cut -d , -f1 | \ awk '{print $3}' | sed 's/^"\(.*\)"$/\1/') - mon_port=$(cat "$mon_config" | grep PORT | cut -d , -f1 | awk '{print $3}') + mon_port=$(cat $mon_conf | grep PORT | cut -d , -f1 | awk '{print $3}') mon_key=$(cat $mon_conf | grep PUBKEY | cut -d , -f1 | awk '{print $3}' | \ sed 's/^"\(.*\)"$/\1/')