mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Fix a bug in which the user's choice to Cancel was not properly recognized.
This commit is contained in:
parent
3b4e309862
commit
538d68ea69
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue