Some changes in ipwndfu error handling

should address issues like #671
This commit is contained in:
LukeeGD 2025-02-11 22:55:49 +08:00
parent 3bfe414ab2
commit 3bdfbfb34a

View File

@ -2174,6 +2174,13 @@ device_ipwndfu() {
"rmsigchks" )
log "Running rmsigchks..."
$p2_sudo "$python2" rmsigchks.py
tool_pwned=$?
if [[ $platform == "macos" ]]; then
print "* If you get the error \"No backend available,\" install libusb in Homebrew/MacPorts"
fi
if [[ $tool_pwned != 0 ]]; then
error "ipwndfu $1 failed. Please run the script again"
fi
;;
"alloc8" )
@ -2183,9 +2190,13 @@ device_ipwndfu() {
fi
log "Installing alloc8 to device"
$p2_sudo "$python2" ipwndfu -x
tool_pwned=$?
if [[ $platform == "macos" ]]; then
print "* If you get the error \"No backend available,\" install libusb in Homebrew/MacPorts"
fi
if [[ $tool_pwned != 0 ]]; then
error "ipwndfu $1 failed. Please run the script again"
fi
;;
esac
if [[ $device_sudoloop == 1 ]]; then