You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alex Skrypnyk edited this page Jul 17, 2019
·
8 revisions
Confirmation allows you to specify a string to prompt the user with and then control the execution of your command. If they type "y", the command will return true (exit 0), otherwise it will return false (exit 1).
...
commands:
confirm:
cmd: | read -r -p "{{args}} [y/N] " response if [ $response = y ] thentrue elsefalse fi