From a997e94edb99a41bd187e6d69e9ebb0ef5bd6acf Mon Sep 17 00:00:00 2001 From: violetc <58360096+s-yh-china@users.noreply.github.com> Date: Sun, 30 Jul 2023 12:03:09 +0800 Subject: [PATCH] Fix api changes --- scripts/PushToAPI.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/PushToAPI.sh b/scripts/PushToAPI.sh index 2d4f0671..e0357922 100644 --- a/scripts/PushToAPI.sh +++ b/scripts/PushToAPI.sh @@ -19,7 +19,7 @@ fi promoted=false number=$(git log --oneline master ^`git describe --tags --abbrev=0` | wc -l) -changes=$(echo "(git log --pretty='%H<<<%s>>>' -number)" | sed 's/\\n/\\\\n/g') +changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed 's/\\n/\\\\n/g') jar_name="leaves-$mcversion.jar" jar_sha256=`sha256 $jar_name` @@ -44,4 +44,6 @@ data=$(cat <> "a.json" + +# curl -X POST -H "Content-Type: application/json" -d "$data" https://api.leavesmc.top/new_release