mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +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
|
||||
local msg="$(echo -n "${msg}" | tr '\n' '\001' | sed 's/\001/\\n/g;s/["\\]/\\\0/g')"
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user