I have several user input statements like:
read -r -p "Do u want to include this step (y) or not (n) (y/N)"? answer if [[ "$answer" =~ ^[Yy]$ ]]; then ... fi
I am looking for a way to automatically answering yes to all these questions. Imagine a non-interactive session where the user invokes the script with
--yes option. No further
The only way I can think right now is adding another condition on each if statement.