Attempt fixing device detect

This commit is contained in:
LukeZGD 2023-01-16 17:31:31 +08:00
parent 6dc5159be4
commit d8d2689b5d

View File

@ -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