Fix a bug in which the user's choice to Cancel was not properly recognized.

This commit is contained in:
Devin Teske 2013-06-02 23:15:12 +00:00
parent 3b4e309862
commit 538d68ea69

View File

@ -176,8 +176,12 @@ f_become_root_via_sudo()
retval=$?
# Catch X11-related errors
[ $retval -eq 255 ] &&
if [ $retval -eq 255 ]; then
f_die $retval "$password"
elif [ $retval -ne 0 ]; then
# User cancelled
exit $retval
fi
else
password=$( $DIALOG \
--title "$DIALOG_TITLE" \