hacky solution to make --recovery and --dfu work

This commit is contained in:
Nebula committed 2022-09-18 10:58:11 -04:00
1 parent 449ad3cf18
commit d8b0be1386
1 file changed
+3 -1
+3 -1
View File
@@ -105,7 +105,9 @@ else
fi
# Put device into recovery mode, and set auto-boot to true
if [ ! "$2" = '--dfu' ] || [ ! "$2" = '--recovery' ]; then
if [ "$2" = '--dfu' ] || [ "$2" = '--recovery' ]; then
:
else
echo "[*] Switching device into recovery mode..."
ideviceenterrecovery $(ideviceinfo | grep "UniqueDeviceID: " | sed 's/UniqueDeviceID: //') > /dev/null
if [ "$os" = 'Darwin' ]; then