mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
Fix jq here
This commit is contained in:
parent
dd9500cee0
commit
5efe48b995
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user