From 8f7603c6024ce1325c45681a33ec0c5c7af7e3b5 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Wed, 1 Sep 2021 01:12:39 +0800 Subject: [PATCH] Fix possible issue Fix possible issue cause by 777bc7c --- resources/depends.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/depends.sh b/resources/depends.sh index e82aa01..173d514 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -157,13 +157,16 @@ InstallDepends() { libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_linux.zip" "4344b3ca95d7433d5a49dcacc840d47770ba34c4") fi - mkdir ../resources/libimobiledevice_$platform + if [[ ! -d ../resources/libimobiledevice_$platform && $MPath == "./resources"* ]]; then Log "Downloading libimobiledevice..." SaveFile ${libimobiledevice[0]} libimobiledevice.zip ${libimobiledevice[1]} + mkdir ../resources/libimobiledevice_$platform Log "Extracting libimobiledevice..." unzip -q libimobiledevice.zip -d ../resources/libimobiledevice_$platform chmod +x ../resources/libimobiledevice_$platform/* + elif [[ $MPath != "./resources"* ]]; then + mkdir ../resources/libimobiledevice_$platform fi cd ..