title: how to 'break' out of an if loop in bash?
body: <p>When I use <code>break</code> in an if loop in bash it tells me its not valid for bash, what can I use instead?</p>
  
  <p>The use case is, the user is asked a question and if he answers 'no', the script should skip to the next section.</p>
  
  <pre><code>if [[ $ans1_1 = "y" ]]; then
      fedoraDeps
  elif [[ $ans1_1 = "n" ]]; then
      break
  else
      echo "Answer 'y' or 'n' "
  fi
  </code></pre>