From b6fa9f2f959265ab7f96f3c9bddac1a2ce122cd3 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sat, 31 Jul 2021 16:58:19 +0800 Subject: [PATCH] do not dl libimobiledevice if installed from brew --- resources/depends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/depends.sh b/resources/depends.sh index 82b5b56..babc06c 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -153,7 +153,7 @@ InstallDepends() { libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_linux.zip" "4344b3ca95d7433d5a49dcacc840d47770ba34c4") fi - if [[ ! -d ../resources/libimobiledevice_$platform ]]; then + if [[ ! -d ../resources/libimobiledevice_$platform && $MPath == "./resources"* ]]; then Log "Downloading libimobiledevice..." SaveFile ${libimobiledevice[0]} libimobiledevice.zip ${libimobiledevice[1]} mkdir ../resources/libimobiledevice_$platform