From a3126703b2786490d249dfd27b10f4654693e885 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Fri, 14 Aug 2020 12:43:30 +0800 Subject: [PATCH] Forgot to add xcode select --- restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 84c0a27..2699f66 100755 --- a/restore.sh +++ b/restore.sh @@ -53,7 +53,7 @@ function Main { DFUDevice=$($lsusb | grep -c '1227') RecoveryDevice=$($lsusb | grep -c '1281') if [[ $1 == Install ]] || [ ! $(which $bspatch) ] || [ ! $(which $ideviceinfo) ] || - [ ! $(which $lsusb) ] || [ ! $(which ssh) ] || [ ! $(which $python) ]; then + [ ! $(which git) ] || [ ! $(which ssh) ] || [ ! $(which $python) ]; then InstallDependencies elif [ $DFUDevice == 1 ] || [ $RecoveryDevice == 1 ]; then ProductType=$(sudo LD_LIBRARY_PATH=/usr/local/lib resources/tools/igetnonce_$platform 2>/dev/null) @@ -478,6 +478,7 @@ function InstallDependencies { elif [[ $OSTYPE == "darwin"* ]]; then # macOS + xcode-select --install curl -L https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip -o libimobiledevice.zip rm -rf ../resources/libimobiledevice mkdir ../resources/libimobiledevice