diff options
| author | nippy <nippy@nippy-Mac-mini.lan> | 2026-08-29 15:59:11 +0200 |
|---|---|---|
| committer | nippy <nippy@nippy-Mac-mini.lan> | 2026-08-29 15:59:11 +0200 |
| commit | 776a713fcd7216d0d688c4fe33215ee8d3b4391a (patch) | |
| tree | bb7a860c3c53c71cf4c5b80de1f7d00e0b13770d /scripts | |
| parent | cda2f7feeeb95ad109f942d3a52d2c8b52269218 (diff) | |
| download | RaveOS-build-iso-776a713fcd7216d0d688c4fe33215ee8d3b4391a.tar.gz RaveOS-build-iso-776a713fcd7216d0d688c4fe33215ee8d3b4391a.zip | |
fix
Diffstat (limited to 'scripts')
| -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}" \ |