title: How to run a .sh script to create a *.zip file?
body: <p>I try to write a shell script <code>create_zip.sh</code> to zip my desired folders as a .zip file.</p>
  
  <p>The content of <code>create_zip.sh</code> is as following:</p>
  
  <pre><code>CODE_DIR='exercise_code/'
  EXERCISE_ZIP_NAME='exercise_01.zip'
  EXERCISE_DIR=$(pwd)
  
  echo 'Zipping file '$EXERCISE_ZIP_NAME
  zip -r $EXERCISE_ZIP_NAME $CODE_DIR
  echo $EXERCISE_ZIP_NAME ' created successfully!!! '
  </code></pre>
  
  <p>But when I double-clicked on the file <code>create_zip.sh</code>, it just opened the Git Bash window and closed immediately. Then nothing happened! (No output message, no newly created *.zip)</p>
  
  <p>How can I solve it? I am using Win10 and with Git Bash as default application to open *.sh file.</p>
  
  <p>Any solution will be very appreciated.</p>