summaryrefslogtreecommitdiffstats
path: root/tsssave
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-09-23 22:37:50 -0400
committerCameron Katri <me@cameronkatri.com>2021-09-23 22:37:50 -0400
commita85c53691f351247bf662d029063796192d8b841 (patch)
tree751fb5b0b681b61582f409ff7fc7bbbf28e1bf6e /tsssave
parentc9037c2759dce504d58760bd019e5e9f6e565db9 (diff)
downloadtsssave-a85c53691f351247bf662d029063796192d8b841.tar.gz
tsssave-a85c53691f351247bf662d029063796192d8b841.tar.zst
tsssave-a85c53691f351247bf662d029063796192d8b841.zip
Fix skipping
Diffstat (limited to 'tsssave')
-rwxr-xr-xtsssave4
1 files changed, 2 insertions, 2 deletions
diff --git a/tsssave b/tsssave
index e171a12..accccf2 100755
--- a/tsssave
+++ b/tsssave
@@ -62,7 +62,7 @@ for device in $(yq e '.devices | keys | .[]' ${config}); do
for signed in $(curl -s https://api.ipsw.me/v4/device/${deviceid} | jq -re '.firmwares[] | select(.signed == true) | .buildid'); do
version="$(curl -s https://api.ipsw.me/v4/device/${deviceid} | jq -re ".firmwares[] | select(.buildid == \"${signed}\") | .version")"
- if [ -e ${output}/${version}/$(printf "%d\n" ${ecid})_${deviceid}_$(printf "${board}\n" | tr '[A-Z]' '[a-z]')_*-${signed}_*.shsh2 ]; then
+ if [ -e ${output}/${device}/${version}/$(printf "%d\n" ${ecid})_${deviceid}_$(printf "${board}\n" | tr '[A-Z]' '[a-z]')_*-${signed}_*.shsh2 ]; then
printf "Skipping %s...\n" ${signed}
else
printf "Saving %s...\n" ${signed}
@@ -77,7 +77,7 @@ for device in $(yq e '.devices | keys | .[]' ${config}); do
for signed in $(curl -sL https://api.m1sta.xyz/betas/${deviceid} | jq -re '.[] | select(.signed == true) | .buildid'); do
version="$(curl -s https://api.m1sta.xyz/betas/${deviceid} | jq -re ".[] | select(.buildid == \"${signed}\") | .version")"
- if [ -e ${output}/${version}/beta/$(printf "%d\n" ${ecid})_${deviceid}_$(printf "${board}\n" | tr '[A-Z]' '[a-z]')_*-${signed}_*.shsh2 ]; then
+ if [ -e ${output}/${device}/${version}/beta/$(printf "%d\n" ${ecid})_${deviceid}_$(printf "${board}\n" | tr '[A-Z]' '[a-z]')_*-${signed}_*.shsh2 ]; then
printf "Skipping %s...\n" ${signed}
else
printf "Saving %s...\n" ${signed}