God damit curse api, JSON it correct, stop you fucking error message!

Former-commit-id: 7cab33245bc528894cabe1eb04b15ce57b1f01cb [formerly 4b511520711757d395546b7780d20fc973006924]
Former-commit-id: 8740d216ad7520a1ad7d0c1ab2645d7d7f78635e
This commit is contained in:
Ghost_chu committed 2019-05-03 15:42:41 +08:00
1 parent 5260a50671
commit 7fae071fd0
1 file changed
+1 -3
+1 -3
View File
@@ -21,10 +21,8 @@ chmod +x "./jq"
# JAR为编译后jar文件名称
read JAR < $filename
# 将变量count的值加1
xToken=$1
xUJson='{"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","changelogType":text,"gameVersions":[7330,7132,7081],"releaseType":"release"}'
curl -X POST -H "X-Api-Token: $xToken" -F "metadata=$xUJson" -F "file=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json
curl -X POST -H "X-Api-Token: $xToken" -F 'metadata={"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","changelogType":text,"gameVersions":[7330,7132,7081],"releaseType":"release"}' -F "file=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json
cat fileid.json
jq '.id' > fileid.txt
cat fileid.txt