Skip to content

Commit

Permalink
dont ask for confirmation on exiting config
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 27, 2017
1 parent be2e4e6 commit 8200602
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions etc/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,8 @@ function config()

case $RET in
$DIALOG_CANCEL)
dialog \
--no-lines --clear \
--backtitle "$BACKTITLE" \
--yesno "Really quit?" 10 30
case $? in
$DIALOG_OK)
echo "Aborted"
return 1
;;
$DIALOG_CANCEL)
RET=99
;;
esac
echo "Aborted"
return 1
;;
$DIALOG_OK)
local RET=( $value )
Expand Down Expand Up @@ -203,7 +192,6 @@ function config()
[[ "$CFGOUT" != "" ]] && echo -e "$CONFIG" > "$CFGOUT"
}


function install_script()
{
(
Expand Down

0 comments on commit 8200602

Please sign in to comment.