Update nutNotifyFct.sh
corrected mistake in the Discord webhook variable.
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ function sendDiscord {
|
|||||||
\"content\": \"$message\"
|
\"content\": \"$message\"
|
||||||
}"
|
}"
|
||||||
|
|
||||||
curl -s -H "Content-Type: application/json" -d "$payload" "$discordWebhookUrl" > $tempjson
|
curl -s -H "Content-Type: application/json" -X POST -d "$payload" "$discordWebhookURL" > $tempjson
|
||||||
returnCurl=$?
|
returnCurl=$?
|
||||||
if [ $returnCurl -ne 0 ]; then
|
if [ $returnCurl -ne 0 ]; then
|
||||||
cat $tempjson
|
cat $tempjson
|
||||||
|
|||||||
Reference in New Issue
Block a user