RD_ZENITY: fixed an issue hwere the status was not correctly passed in some cases

This commit is contained in:
XargonWan 2025-02-18 11:57:11 +09:00
parent 1fdc81aa08
commit 246001b1f0

View file

@ -301,7 +301,9 @@ rd_zenity() {
# This function replaces the standard 'zenity' command and filters out annoying GTK errors on Steam Deck
export GUI="zenity"
zenity 2> >(grep -v 'Gtk' >&2) "$@"
local status=${PIPESTATUS[0]} # Capture the exit code of 'zenity'
unset GUI
return $status
}
update_rpcs3_firmware() {