title: Exit a shell script properly in Mac OS X
body: <p>I have a shell script that create for me a project with the full structure, git repository etc...
  The problem is that I can't use the terminal after the execution of the test. Here is a sample of my script :</p>
  
  <pre><code>read -p "Have you created the remote repository : $repo.git ? [y/n] " ok
  if [ $ok != "y" ]; then
      echo "You must create the remote repository before."
      exit 0;
  fi
  
  git init
  # Rest of the script...
  </code></pre>
  
  <p>When I type "n" as an answer, the terminal displays this (for non-french people, "Opération terminée" means "End of the operation") :</p>
  
  <pre><code>You must create the remote repository before.
  logout
  
  [Opération terminée]
  </code></pre>
  
  <p>And I can't use it anymore. The only way to use it again is to close the tab and open another one. Maybe the problem is in the <code>exit 0</code> ? How to exit the script properly ?</p>
  
  <p>Thanks.</p>