From 4a6136e9ba1f69792c3b1c630d3c65310ca88613 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 15 Oct 2018 20:23:02 -0700 Subject: [PATCH] Fixed minify --- lgsm/functions/alert_discord.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/alert_discord.sh b/lgsm/functions/alert_discord.sh index 75c8be2f0..5de1df245 100644 --- a/lgsm/functions/alert_discord.sh +++ b/lgsm/functions/alert_discord.sh @@ -54,8 +54,11 @@ EOF fn_print_dots "Sending Discord alert" -minified="$(echo -n "$json" | jq -c -M "@json")" -discordsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d "${json}" "${discordwebhook}") +minified="$(echo -n "$json" | jq -c .)" + +echo "$minified" > /tmp/json + +discordsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d "${minified}" "${discordwebhook}") if [ -n "${discordsend}" ]; then fn_print_fail_nl "Sending Discord alert: ${discordsend}"