mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-21 12:54:15 +01:00
edit beta url
This commit is contained in:
1 file changed
+8
-16
+8
-16
@@ -134,6 +134,13 @@ _kill_if_running() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_beta_url() {
|
||||||
|
json=$(curl -s https://raw.githubusercontent.com/littlebyteorg/appledb/main/osFiles/iOS/19x%20-%2015.x/19B5060d.json)
|
||||||
|
sources=$(echo "$json" | $dir/jq -r '.sources')
|
||||||
|
beta_url=$(echo "$sources" | $dir/jq -r --arg deviceid "$deviceid" '.[] | select(.type == "ota" and (.deviceMap | index($deviceid))) | .links[0].url')
|
||||||
|
echo "$beta_url"
|
||||||
|
}
|
||||||
|
|
||||||
_exit_handler() {
|
_exit_handler() {
|
||||||
if [ "$os" = 'Darwin' ]; then
|
if [ "$os" = 'Darwin' ]; then
|
||||||
if [ ! "$1" = '--dfu' ]; then
|
if [ ! "$1" = '--dfu' ]; then
|
||||||
@@ -151,25 +158,10 @@ _exit_handler() {
|
|||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [[ "$@" == *"--debug"* ]]; then
|
echo "[*] A failure log has been made. If you're going to make a GitHub issue, please attach the latest log."
|
||||||
echo "[*] A failure log has been made. If you're going to make a GitHub issue, please attatch the latest log."
|
|
||||||
else
|
|
||||||
echo "[*] A failure log has been made, but you aren't running with --debug. DO NOT send this in a GitHub issue."
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
trap _exit_handler EXIT
|
trap _exit_handler EXIT
|
||||||
|
|
||||||
# =========
|
|
||||||
# Json parser
|
|
||||||
# =========
|
|
||||||
# get beta url
|
|
||||||
_beta_url() {
|
|
||||||
json=$(curl -s https://raw.githubusercontent.com/littlebyteorg/appledb/main/iosFiles/iOS/19x%20-%2015.x/19B5060d.json)
|
|
||||||
sources=$(echo "$json" | $dir/jq -r '.sources')
|
|
||||||
beta_url=$(echo "$sources" | $dir/jq -r --arg deviceid "$deviceid" '.[] | select(.type == "ota" and (.deviceMap | index($deviceid))) | .links[0].url')
|
|
||||||
echo "$beta_url"
|
|
||||||
}
|
|
||||||
|
|
||||||
# ===========
|
# ===========
|
||||||
# Fixes
|
# Fixes
|
||||||
# ===========
|
# ===========
|
||||||
|
|||||||
Reference in new issue
Block a user