Commit 1f56476f authored by nanahira's avatar nanahira

fix get json

parent 20b8f319
...@@ -54,18 +54,22 @@ deleteBuild() { ...@@ -54,18 +54,22 @@ deleteBuild() {
getAppInfoRaw() { getAppInfoRaw() {
appName="$1" 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" handleErrorMessage "$result"
echo "$result" echo "$result"
} }
getAppBuilds() { getAppBuilds() {
getAppInfoRaw "$@" | jq ".data[0].depots" getAppInfoRaw "$1" 0 | jq ".data[0].depots"
} }
getAppJson() { getAppJson() {
appName="$1" appName="$1"
getAppInfoRaw "$@" | jq ".data[0].appData" | tee "./jsons/$appName.json" getAppInfoRaw "$1" 1 | jq ".data[0].appData" | tee "./jsons/$appName.json"
} }
uploadAppJson() { 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