Fix jq here

This commit is contained in:
LukeZGD 2023-02-16 16:48:21 +08:00
parent dd9500cee0
commit 5efe48b995

View File

@ -2317,11 +2317,11 @@ shsh_save_onboard() {
shsh_save_cydia() { shsh_save_cydia() {
local json=$(curl "https://firmware-keys.ipsw.me/device/$device_type") local json=$(curl "https://firmware-keys.ipsw.me/device/$device_type")
local len=$(echo "$json" | jq length) local len=$(echo "$json" | $jq length)
local builds=() local builds=()
local i=0 local i=0
while (( i < len )); do while (( i < len )); do
builds+=($(echo "$json" | jq -r ".[$i].buildid")) builds+=($(echo "$json" | $jq -r ".[$i].buildid"))
((i++)) ((i++))
done done
for build in ${builds[@]}; do for build in ${builds[@]}; do