mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix capture of whiptail's exit status
The exit status of `whiptail` was masked by the subsequent call to `clear`. This correct the capture of whiptail's exit status so that pressing the `[Cancel]` button can be correctly detected by the script. Fixes #7830
This commit is contained in:
parent
750a3383ca
commit
dca70f809d
@ -122,9 +122,10 @@ BROWSER=$(whiptail \
|
||||
"7" "Microsoft Edge" \
|
||||
3>&1 1>&2 2>&3)
|
||||
|
||||
exitstatus=$?
|
||||
|
||||
clear
|
||||
|
||||
exitstatus=$?
|
||||
if [[ $exitstatus == 0 ]]; then
|
||||
# Configure settings for the chosen browser
|
||||
case $BROWSER in
|
||||
|
Loading…
Reference in New Issue
Block a user