mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 06:49:34 +00:00
[ci skip] fix: fix push to api fail when commit contains double quotation marks (#677)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user