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:
@@ -17,7 +17,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
number=$(git log --oneline master ^"$(git describe --tags --abbrev=0)" | wc -l)
|
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_name="leaves-$mcversion.jar"
|
||||||
jar_sha256=$(sha256 "$jar_name")
|
jar_sha256=$(sha256 "$jar_name")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user