title: Change Active directory in Shell Script
body: <p>I'm really new in the shell-department. So i want to change the directory in my shell-script. I've tried many different "solutions" from stackoverflow. But nothing seems to work. Here my Code:</p>
  
  <pre><code>runas webuserA
  cd /usr/webapps/myApp/deploy
  cp /tmp/myFile ./
  exit
  runas webuserB
  </code></pre>
  
  <p>The script won't change the active directory. I've tried to run it with the following commands:</p>
  
  <pre><code>source ./runIt.sh
  . runIt.sh
  bash runIt.sh
  sh runIt.sh
  </code></pre>
  
  <p>What do I have to change in the script or in the start-command?</p>