mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-30 11:54:18 +01:00
Update
This commit is contained in:
parent
4c3b850772
commit
a4eacc24cc
@ -74,7 +74,7 @@ SaveExternal() {
|
||||
if [[ ! -d $External || ! -d $External/.git ]]; then
|
||||
Log "Downloading $External..."
|
||||
rm -rf $External
|
||||
$git clone $ExternalURL $External
|
||||
$git clone --depth 1 $ExternalURL $External
|
||||
fi
|
||||
if [[ ! $(ls $External/*.md) || ! -d $External/.git ]]; then
|
||||
rm -rf $External
|
||||
@ -142,7 +142,7 @@ InstallDepends() {
|
||||
fi
|
||||
|
||||
if [[ $platform == "linux" ]]; then
|
||||
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_linux.zip" "4344b3ca95d7433d5a49dcacc840d47770ba34c4")
|
||||
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_linux.zip" "95e2ffc86b35c71039fcf3ef732e30dd766112ce")
|
||||
fi
|
||||
|
||||
if [[ ! -d ../resources/libimobiledevice_$platform && $MPath == "./resources"* ]]; then
|
||||
|
10
restore.sh
10
restore.sh
@ -76,7 +76,8 @@ Main() {
|
||||
fi
|
||||
|
||||
Log "Checking Internet connection..."
|
||||
if [[ ! $(ping -c1 1.1.1.1 2>/dev/null) ]]; then
|
||||
ping -c1 8.8.8.8 >/dev/null
|
||||
if [[ $? != 0 ]]; then
|
||||
Error "Please check your Internet connection before proceeding."
|
||||
fi
|
||||
|
||||
@ -86,8 +87,13 @@ Main() {
|
||||
Error "Only 64-bit (x86_64) distributions are supported."
|
||||
fi
|
||||
|
||||
if [[ $1 == "Install" || ! $bspatch || ! $ideviceinfo || ! $irecoverychk || ! $python ||
|
||||
if [[ $1 == "Install" || -z $bspatch || ! -e $ideviceinfo || ! -e $irecoverychk ||
|
||||
! -e $ideviceenterrecovery || ! -e $iproxy || -z $python ||
|
||||
! -d ./resources/libimobiledevice_$platform ]]; then
|
||||
if [[ ! -e $ideviceinfo || ! -e $irecoverychk ||
|
||||
! -e $ideviceenterrecovery || ! -e $iproxy ]]; then
|
||||
rm -rf ./resources/libimobiledevice_$platform
|
||||
fi
|
||||
Clean
|
||||
InstallDepends
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user