9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

[ci skip] fix: fix push to api fail when commit contains double quotation marks (#677)

This commit is contained in:
MC_XiaoHei
2025-08-11 17:08:46 +08:00
committed by GitHub
parent e298d0978a
commit 099be5b864

View File

@@ -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")