fix script

Former-commit-id: 60373c5a1b512b6d69cd6db6c68492165e9e6300 [formerly 62be5d15e7ac1cf784dde77979c4d28ab47bf217]
Former-commit-id: a7fc519fa95a6bc874799d58622ada6d30ebe97d
This commit is contained in:
Ghost_chu committed 2019-05-03 15:26:43 +08:00
1 parent 51aae63f76
commit 6524dc3240
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ read JAR < $filename
# 将变量count的值加1
xToken=$1
xUJson='{"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","changelogType":["text","markdown"],"gameVersions":[7330,7132,7081],"releaseType":"release"}'
curl -X POST -H "X-Api-Token: $xToken" -F "meta=$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=$xUJson" -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