From d8d2689b5d30713f3d3faa5e6b5263d2f262d232 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 16 Jan 2023 17:31:31 +0800 Subject: [PATCH] Attempt fixing device detect --- restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 3a41831..22848e2 100755 --- a/restore.sh +++ b/restore.sh @@ -374,7 +374,8 @@ device_get_info() { device_vers="Unknown" fi - if [[ -z $device_mode && $($ideviceinfo -s 2>/dev/null) != "ERROR"* ]]; then + $ideviceinfo -s >/dev/null + if [[ $? == 0 ]]; then device_mode="Normal" fi