<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,18 +1,22 @@
-# Aliases for getting around on a deployed production/staging Rails server.  
-if [ -z &quot;${PROJECT_ROOT}&quot; ]; then
-	echo &quot;You must define PROJECT_ROOT in ~/.bash_profile for this to work it should point at the deploy_to location of your app.&quot;
-fi
+# Only set all this stuff up if we are in a non-interactive shell..this prevents breaking SCP with any of the echo's below
+if [ ! $(expr index &quot;$-&quot; i) -eq 0 ]; then 
+  
+  # Aliases for getting around on a deployed production/staging Rails server.  
+  if [ -z &quot;${PROJECT_ROOT}&quot; ]; then
+  	echo &quot;You must define PROJECT_ROOT in ~/.bash_profile for this to work it should point at the deploy_to location of your app.&quot;
+  fi
 
-# TODO add support and autodetection for /data root, maybe the /u root, and allowing user to override the root
+  # TODO add support and autodetection for /data root, maybe the /u root, and allowing user to override the root
 
-PROJECT_CURRENT=&quot;${PROJECT_ROOT}/current&quot;
-PROJECT_SHARED=&quot;${PROJECT_ROOT}/shared&quot;
+  PROJECT_CURRENT=&quot;${PROJECT_ROOT}/current&quot;
+  PROJECT_SHARED=&quot;${PROJECT_ROOT}/shared&quot;
 
-if [ -d &quot;$PROJECT_CURRENT&quot; ]; then
-  alias current=&quot;cd ${PROJECT_CURRENT}&quot;
-  alias shared=&quot;cd ${PROJECT_SHARED}&quot;
-  alias logs=&quot;cd ${PROJECT_SHARED}/log&quot;
-  alias sc=&quot;cd ${PROJECT_CURRENT} &amp;&amp; script/console&quot;
-else
-  echo &quot;$PROJECT_CURRENT doesn't exist - not creating handy deploy box aliases.&quot;
-fi
+  if [ -d &quot;$PROJECT_CURRENT&quot; ]; then
+    alias current=&quot;cd ${PROJECT_CURRENT}&quot;
+    alias shared=&quot;cd ${PROJECT_SHARED}&quot;
+    alias logs=&quot;cd ${PROJECT_SHARED}/log&quot;
+    alias sc=&quot;cd ${PROJECT_CURRENT} &amp;&amp; script/console&quot;
+  else
+    echo &quot;$PROJECT_CURRENT doesn't exist - not creating handy deploy box aliases.&quot;
+  fi
+fi
\ No newline at end of file</diff>
      <filename>bash/deploy.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5b26da8d2a95cd03c63e87c51e77abbfaa08fb68</id>
    </parent>
  </parents>
  <author>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </author>
  <url>http://github.com/relevance/etc/commit/163631cf410f8b5aedc8debe144efe87af859ed4</url>
  <id>163631cf410f8b5aedc8debe144efe87af859ed4</id>
  <committed-date>2009-04-29T21:24:48-07:00</committed-date>
  <authored-date>2009-04-29T21:24:48-07:00</authored-date>
  <message>try to avoid breaking scp</message>
  <tree>6bfd1561e69d996f6783ad169b7108243cd99392</tree>
  <committer>
    <name>Rob Sanheim</name>
    <email>rsanheim@gmail.com</email>
  </committer>
</commit>
