Browse Source

Fixed minify

pull/2046/head
diamondburned 7 years ago
committed by GitHub
parent
commit
4a6136e9ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      lgsm/functions/alert_discord.sh

7
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}"

Loading…
Cancel
Save