diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-09-23 22:37:50 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-09-23 22:37:50 -0400 |
commit | a85c53691f351247bf662d029063796192d8b841 (patch) | |
tree | 751fb5b0b681b61582f409ff7fc7bbbf28e1bf6e /tsssave | |
parent | c9037c2759dce504d58760bd019e5e9f6e565db9 (diff) | |
download | tsssave-a85c53691f351247bf662d029063796192d8b841.tar.gz tsssave-a85c53691f351247bf662d029063796192d8b841.tar.zst tsssave-a85c53691f351247bf662d029063796192d8b841.zip |
Fix skipping
Diffstat (limited to 'tsssave')
-rwxr-xr-x | tsssave | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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} |