]> git.cameronkatri.com Git - tsssave.git/commitdiff
Fixes
authorCameron Katri <me@cameronkatri.com>
Wed, 22 Sep 2021 02:14:11 +0000 (22:14 -0400)
committerCameron Katri <me@cameronkatri.com>
Wed, 22 Sep 2021 02:14:11 +0000 (22:14 -0400)
tsssave

diff --git a/tsssave b/tsssave
index f7a00f4d74293d9e8526c1558d4ce0f917b639e5..e171a12e2d32c6e9ea6c562506d04ddab0e31ee3 100755 (executable)
--- a/tsssave
+++ b/tsssave
 #       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