Fix a bug in which the user's choice to Cancel was not properly recognized.
This commit is contained in:
parent
3b4e309862
commit
538d68ea69
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user