summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-09-21 22:14:11 -0400
committerCameron Katri <me@cameronkatri.com>2021-09-21 22:14:11 -0400
commit33aba4dbe45f586ea0deeade3558005dd57beff1 (patch)
treea8e1f0b8b7b3074839aef5dbf2e26e2b00266c1e
parentfd355a15f9ce5823870c79eac430239e175d156c (diff)
downloadtsssave-33aba4dbe45f586ea0deeade3558005dd57beff1.tar.gz
tsssave-33aba4dbe45f586ea0deeade3558005dd57beff1.tar.zst
tsssave-33aba4dbe45f586ea0deeade3558005dd57beff1.zip
Fixes
-rwxr-xr-xtsssave10
1 files changed, 5 insertions, 5 deletions
diff --git a/tsssave b/tsssave
index f7a00f4..e171a12 100755
--- a/tsssave
+++ b/tsssave
@@ -17,22 +17,22 @@
# apnonce: apnonce
#
-if ! command -v yq; then
+if ! command -v yq >/dev/null; then
printf "Please install yq\nhttps://github.com/mikefarah/yq\n"
missingdep=1
fi
-if ! command -v jq; then
+if ! command -v jq >/dev/null; then
printf "Please install jq\nhttps://github.com/stedolan/jq\n"
missingdep=1
fi
-if ! command -v tsschecker; then
+if ! command -v tsschecker >/dev/null; then
printf "Please install tsschecker\nhttps://github.com/1Conan/tsschecker\n"
missingdep=1
fi
-if ! command -v pzb; then
+if ! command -v pzb >/dev/null; then
printf "Please install pzb\nhttps://github.com/tihmstar/partialZipBrowser\n"
missingdep=1
fi
@@ -82,7 +82,7 @@ for device in $(yq e '.devices | keys | .[]' ${config}); do
else
printf "Saving %s...\n" ${signed}
pzb "$(curl -sL https://api.m1sta.xyz/betas/${deviceid} | jq -re ".[] | select(.buildid == \"${signed}\") | .url")" -g BuildManifest.plist -o BuildManifest-${board}-${signed}.plist
- mkdir -p ${output}/${device}/${version}/
+ mkdir -p ${output}/${device}/${version}/beta/
tsschecker -d "${deviceid}" -B "${board}" -m /tmp/BuildManifest-${board}-${signed}.plist -s -e "${ecid}" --generator "${generator}" \
--apnonce "${apnonce}" --save-path ${output}/${device}/${version}/beta/
fi