From: Cameron Katri Date: Wed, 22 Sep 2021 02:14:11 +0000 (-0400) Subject: Fixes X-Git-Url: https://git.cameronkatri.com/tsssave.git/commitdiff_plain/33aba4dbe45f586ea0deeade3558005dd57beff1 Fixes --- 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