From 401057928d2bd2ecfef6c0cce872ba1a1c98ddf9 Mon Sep 17 00:00:00 2001 From: Bryan Zick Date: Sun, 28 Jan 2024 02:17:42 -0500 Subject: [PATCH] -X is assumed when using -d arg for curl --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d86fc743b..9dadefa25 100644 --- a/README.md +++ b/README.md @@ -238,7 +238,7 @@ send discord message with docker run: ```sh -e DISCORD_WEBHOOK="https://discord.com/api/webhooks/xxxx/xxxxx" \ -e DISCORD_PRE_INIT_MESSAGE="Server initializing" \ --e PRE_INIT_HOOK='curl -sfSL -X POST -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$DISCORD_PRE_INIT_MESSAGE\"}" "$DISCORD_WEBHOOK"' +-e PRE_INIT_HOOK='curl -sfSL -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$DISCORD_PRE_INIT_MESSAGE\"}" "$DISCORD_WEBHOOK"' ``` send discord message with docker compose: @@ -246,7 +246,7 @@ send discord message with docker compose: ```yaml - DISCORD_WEBHOOK=https://discord.com/api/webhooks/xxxx/xxxxx - DISCORD_PRE_INIT_MESSAGE="Server initializing..." -- 'PRE_INIT_HOOK=curl -sfSL -X POST -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$$(eval echo $$DISCORD_PRE_INIT_MESSAGE)\"}" $$DISCORD_WEBHOOK' +- 'PRE_INIT_HOOK=curl -sfSL -H "Content-Type: application/json" -d "{\"username\":\"Palworld\",\"content\":\"$$(eval echo $$DISCORD_PRE_INIT_MESSAGE)\"}" $$DISCORD_WEBHOOK' ``` ## Reporting Issues/Feature Requests