title: Cd in shell script not working
body: <p>First off I am very very new to shell scripting.  I am trying to write a script that takes in one parameter and then copies a folder in a different directory naming it using the parameter.  This is the current code that I have:</p>
  
  <pre><code>#!/bin/sh
  cd /var/www/html/fbplugin/chrome
  sudo mkdir temp/$1
  sudo cp -rf "/var/www/html/fbplugin/chrome/fbplugin" "/var/www/html/fbplugin/chrome/temp/$1"
  </code></pre>
  
  <p>When I run this code it says <strong>can't cd to /var/www/html/fbplugin/chrome</strong>.  I'm not sure why it is saying this because I know the directory exists.  I have copied the line directly and it works in terminal.  If anyone could help me out that would be great.</p>
  
  <p>If it matters in order to run the script I am typing "sh build.sh"</p>