title: How do I let user to correct the error while executing bunch of task via bash script?
body: <p>I want to automate a bunch of tasks Task_1, Task_2, Task_3, Task_4, Task_5 -</p>
  
  <pre><code>status = Task_1
  if (status == FALSE)
     *give option for user to rectify the problem, once done, proceed to Task_2*
  status = Task_2
  if (status == FALSE)
     *give option for user to rectify the problem, once done, proceed to Task_3*
  status = Task_3
  if (status == FALSE)
     *give option for user to rectify the problem, once done, proceed to Task_4*
  status = Task_4
  if (status == FALSE)
     *give option for user to rectify the problem, once done, proceed to Task_5*
  status = Task_5
  </code></pre>
  
  <p>How do I achieve the goal of -
  "<em>give option for user to rectify the problem, once done, proceed to Task_X</em>"
  ?</p>
  
  <p>Edit:</p>
  
  <p>I am looking at a functionality something similar to that of -</p>
  
  <ol>
  <li>you execute git pull --rebase, </li>
  <li>If there is a merge issue, then it notifies user and let them take action.</li>
  <li>Once the user corrects, they can execute, git rebase --continue to continue with the rebase process where it was left.</li>
  </ol>