From 776a713fcd7216d0d688c4fe33215ee8d3b4391a Mon Sep 17 00:00:00 2001 From: nippy Date: Sat, 29 Aug 2026 15:59:11 +0200 Subject: fix --- scripts/discord-notify.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') 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}" \ -- cgit v1.3