From 099be5b8645331235d397ece785e4512885eaa11 Mon Sep 17 00:00:00 2001 From: MC_XiaoHei Date: Mon, 11 Aug 2025 17:08:46 +0800 Subject: [PATCH] [ci skip] fix: fix push to api fail when commit contains double quotation marks (#677) --- scripts/PushToAPI.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/PushToAPI.sh b/scripts/PushToAPI.sh index a29d509d..06ce05e6 100644 --- a/scripts/PushToAPI.sh +++ b/scripts/PushToAPI.sh @@ -17,7 +17,7 @@ else fi number=$(git log --oneline master ^"$(git describe --tags --abbrev=0)" | wc -l) -changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed ':a;N;$!ba;s/\n//g') +changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed ':a;N;$!ba;s/\n//g' | sed 's/"/\\"/g') jar_name="leaves-$mcversion.jar" jar_sha256=$(sha256 "$jar_name")