-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about get_user_continue #322
Comments
Simply put, return breaks the group. Saying no continus and installs anyways. The reason this exist is to offer a warning and/or user agreement to continue. before system files are changed. Can use some refinement. Even refactored. This probably over complex setup was to be used for inclusion for the nuanced difference of whiptail and dialog and read. Background I am not a fan of loops or nesting in bash haven't had need for returns when piping echos. The UX aspects aside, The approach I prefer to take with bash is do linear procedure, pipe out or exit.
This has been a point before, The reason why return was not looked into. responding
|
I see, basically the reason I asked is that my idea of closing stdin for non-interactive mode (#320 (comment)) has one gotcha. If the function being called with In non-interactive mode (with What do you think? |
If in non interactive should go directly to |
@Tearran trying to understand what's going on inside
get_user_continue
function. In the code it's always used withprocess_input
. And if I select No when asked "Do you wish to continue?" the program just exits instead of returning to the menu...Why doesn't
get_user_continue
just return 0 or 1 codes? Or is there a deeper design plot that I've failed to grasp?The text was updated successfully, but these errors were encountered: