mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-12 00:09:10 +01:00
Fix #243
This commit is contained in:
parent
8cce936efc
commit
ea84b1bfcd
11
restore.sh
11
restore.sh
@ -796,10 +796,17 @@ device_enter_mode() {
|
|||||||
|
|
||||||
device_ipwndfu() {
|
device_ipwndfu() {
|
||||||
local tool_pwned=0
|
local tool_pwned=0
|
||||||
|
local mac_ver=0
|
||||||
local python2=$(which python2 2>/dev/null)
|
local python2=$(which python2 2>/dev/null)
|
||||||
print "* Make sure to have python2 installed to use ipwndfu"
|
print "* Make sure to have python2 installed to use ipwndfu"
|
||||||
print "* You may install python2 from pyenv: pyenv install 2.7.18"
|
print "* You may install python2 from pyenv: pyenv install 2.7.18"
|
||||||
if [[ -e ~/.pyenv/shims/python2 ]]; then
|
|
||||||
|
if [[ $platform == "macos" ]]; then
|
||||||
|
mac_ver=$(echo "$platform_ver" | cut -c -2)
|
||||||
|
fi
|
||||||
|
if [[ $platform == "macos" ]] && (( mac_ver < 12 )); then
|
||||||
|
python2=/usr/bin/python
|
||||||
|
elif [[ -e ~/.pyenv/shims/python2 ]]; then
|
||||||
print "* python2 from pyenv detected"
|
print "* python2 from pyenv detected"
|
||||||
python2=~/.pyenv/shims/python2
|
python2=~/.pyenv/shims/python2
|
||||||
fi
|
fi
|
||||||
@ -1841,7 +1848,7 @@ restore_futurerestore() {
|
|||||||
pushd ../resources >/dev/null
|
pushd ../resources >/dev/null
|
||||||
if [[ $platform == "macos" ]] && (( mac_ver < 12 )); then
|
if [[ $platform == "macos" ]] && (( mac_ver < 12 )); then
|
||||||
# python2 SimpleHTTPServer for macos 11 and older
|
# python2 SimpleHTTPServer for macos 11 and older
|
||||||
$(which python2) -m SimpleHTTPServer $port &
|
/usr/bin/python -m SimpleHTTPServer $port &
|
||||||
httpserver_pid=$!
|
httpserver_pid=$!
|
||||||
else
|
else
|
||||||
# python3 http.server for the rest
|
# python3 http.server for the rest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user