Skip to content

Commit 52b956f

Browse files
author
Oliver Cervera
authored
Fix Discord output
Just send one line to Discord.
1 parent ab7f9f1 commit 52b956f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snapraid-aio-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ function notify_success(){
770770
if [ "$DISCORD" -eq 1 ]; then
771771
curl -fsS -m 5 --retry 3 -o /dev/null -X POST \
772772
-H 'Content-Type: application/json' \
773-
-d '{"content": "'"$NOTIFY_OUTPUT"'"}' \
773+
-d '{"content": "'"$SUBJECT"'"}' \
774774
"$DISCORD_WEBHOOK_URL"
775775
fi
776776
}
@@ -788,7 +788,7 @@ function notify_warning(){
788788
if [ "$DISCORD" -eq 1 ]; then
789789
curl -fsS -m 5 --retry 3 -o /dev/null -X POST \
790790
-H 'Content-Type: application/json' \
791-
-d '{"content": "'"$NOTIFY_OUTPUT"'"}' \
791+
-d '{"content": "'"$SUBJECT"'"}' \
792792
"$DISCORD_WEBHOOK_URL"
793793
fi
794794
}

0 commit comments

Comments
 (0)