title: high sierra bash shell script how to change directory
body: <p>I work with high sierra and I have the following shell script</p>
  
  <pre><code>TOMCAT_PATH=/usr/local/Cellar/tomcat/9.0.12/
  cd ./webapp/inventory/WEB-INF
  rm -r -v classes
  mkdir classes
  cp -R ../../../classes ./classes
  cd ..
  jar -cvf inventory.war WEB-INF
  cp inventory.war $TOMCAT_PATH/webapps
  cd ../..
  </code></pre>
  
  <p>How can I execute the command </p>
  
  <pre><code>cd ./webapp/inventory/WEB-INF
  </code></pre>
  
  <p>After this cd the directory doesn't change</p>
  
  <p>The current directory</p>
  
  <pre><code>/Users/carlotavina/Documents/carlota/irvine/javaenterprisedevelopment/curso6-webservices/week2/assignment/HW-2_Setup
  </code></pre>
  
  <p>In this directory I have subdirectory <code>webapp/inventory</code>. I want to move to this directory</p>