mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 15:08:28 +00:00
Silence curl when sending nofitication to Discord
This commit is contained in:
parent
ccb8c7c029
commit
6c320bc56f
@ -507,7 +507,7 @@ function notifyDiscord(){
|
|||||||
if [ -n "$discordWebhookURL" ]; then
|
if [ -n "$discordWebhookURL" ]; then
|
||||||
local msg="$(echo -n "${msg}" | tr '\n' '\001' | sed 's/\001/\\n/g;s/["\\]/\\\0/g')"
|
local msg="$(echo -n "${msg}" | tr '\n' '\001' | sed 's/\001/\\n/g;s/["\\]/\\\0/g')"
|
||||||
local json="{\"content\":\"${msg}\"}"
|
local json="{\"content\":\"${msg}\"}"
|
||||||
curl -H "Content-Type: application/json" -d "${json}" "$discordWebhookURL" >/dev/null
|
curl -s -H "Content-Type: application/json" -d "${json}" "$discordWebhookURL" >/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user