From b62ddcb741f042bb7d1ee597581ba5679eb85132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20B=C3=B6hm?= Date: Fri, 7 Oct 2022 10:50:16 +0200 Subject: [PATCH] escaping quotes --- checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checker.sh b/checker.sh index a929f30..fafd781 100755 --- a/checker.sh +++ b/checker.sh @@ -10,5 +10,5 @@ then else new_version=`curl -s "https://api.steampowered.com/ISteamApps/UpToDateCheck/v1/?appid=440&version=${version}" | jq -r .response.required_version` echo "There has been an update, server version: ${version}, newest version: ${new_version}" - curl -H "Content-Type: application/json" -d '{"username": "Server Version", "content": "There has been an update, server version: ${version}, newest version: ${new_version}"}' "https://discord.com/api/webhooks/1027862143871221770/iK9CAShzV5nrVW_k7m9fouHa5EIOPoXCOofCp7ap9JYEKgmlYgaIgf3NJ2YFb_wy-Y7s" + curl -H "Content-Type: application/json" -d "{\"username\": \"Server Version\", \"content\": \"There has been an update, server version: $version, newest version: $new_version\"}" "https://discord.com/api/webhooks/1027862143871221770/iK9CAShzV5nrVW_k7m9fouHa5EIOPoXCOofCp7ap9JYEKgmlYgaIgf3NJ2YFb_wy-Y7s" fi