From 756c6e996868be8f5827383768ca05e792c5e996 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Sun, 30 Jul 2023 23:25:26 +0800 Subject: [PATCH] ci: fix push to api (#82) --- scripts/PushToAPI.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/PushToAPI.sh b/scripts/PushToAPI.sh index 4d68e31a..04baba2e 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=$(git log --pretty='%H<<<%s>>>' -"$number" | sed 's/\\n/\\\\n/g') +changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed ':a;N;$!ba;s/\n//g') jar_name="leaves-$mcversion.jar" jar_sha256=`sha256 $jar_name`