diff options
Diffstat (limited to 'scripts/discord-notify.sh')
| -rwxr-xr-x | scripts/discord-notify.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/discord-notify.sh b/scripts/discord-notify.sh index df5d60a..0cb0fb3 100755 --- a/scripts/discord-notify.sh +++ b/scripts/discord-notify.sh @@ -19,11 +19,7 @@ CONTENT="@everyone > Letoltes: https://links.rp1.hu/raveos-download > SHA256: \`${ISO_SHA256}\`" -JSON=$(python3 -c " -import json -content = '''${CONTENT}''' -print(json.dumps({'content': content, 'allowed_mentions': {'parse': ['everyone']}}, ensure_ascii=False)) -") +JSON=$(python3 -c "import sys, json; print(json.dumps({'content': sys.argv[1], 'allowed_mentions': {'parse': ['everyone']}}, ensure_ascii=False))" "${CONTENT}") curl -s \ -F "payload_json=${JSON}" \ |