:::: MENU ::::

Add a confirmation dialog with bash

  • Oct 28 / 2016
  • 0
Linux

Add a confirmation dialog with bash

If you have a bash script doing some critical actions, it can be useful to add a confirmation dialog to double check with the user that he really wants to perform the action.

Here is a very simple script allowing this kind of checking:

Output will look like:

  • Case ‘yes’:
  • Case ‘no’:

It’s up to you customizing it depending on your needs and your feelings!

Share...Share on Google+Tweet about this on TwitterShare on RedditShare on LinkedInShare on FacebookEmail this to someone

Comments are closed.

Question ? Contact