Commit 1f56476f authored by nanahira's avatar nanahira

fix get json

parent 20b8f319
......@@ -54,18 +54,22 @@ deleteBuild() {
getAppInfoRaw() {
appName="$1"
result=$(curl -sL -H "$header" "$apiRoot/release/api/app?id=$appName")
url="$apiRoot/release/api/app?id=$appName"
if [[ "$2" == 1 ]]; then
url="$url&simple=1"
fi
result=$(curl -sL -H "$header" "$url")
handleErrorMessage "$result"
echo "$result"
}
getAppBuilds() {
getAppInfoRaw "$@" | jq ".data[0].depots"
getAppInfoRaw "$1" 0 | jq ".data[0].depots"
}
getAppJson() {
appName="$1"
getAppInfoRaw "$@" | jq ".data[0].appData" | tee "./jsons/$appName.json"
getAppInfoRaw "$1" 1 | jq ".data[0].appData" | tee "./jsons/$appName.json"
}
uploadAppJson() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment