#!/bin/bash

# Server-specific, I have RVM setup at the profile file:
source /etc/profile

git fetch && git reset origin/master --hard
rvm 1.9.2-head,1.8.7 exec bundle install --local && rspec spec

#!/bin/sh

# Server-specific, I have RVM setup at the profile file:
source /etc/profile

rvm 1.9.2-head,1.8.7 exec bundle install && rspec spec

--- 
+++ 
@@ -1,6 +1,7 @@
-#!/bin/sh
+#!/bin/bash
 
 # Server-specific, I have RVM setup at the profile file:
 source /etc/profile
 
-rvm 1.9.2-head,1.8.7 exec bundle install && rspec spec
+git fetch && git reset origin/master --hard
+rvm 1.9.2-head,1.8.7 exec bundle install --local && rspec spec
Use Bash, otherwise RVM will complain, install only local gems and pull the changes manually.
