bin/softwear-deploy in softwear-lib-1.2.9 vs bin/softwear-deploy in softwear-lib-1.2.10

- old
+ new

@@ -1,6 +1,7 @@ -#!/bin/bash +#!/usr/bin/env ruby -if [ "$(git rev-parse --abbrev-ref HEAD)" = "master" ]; then - rvm install 2.1.2 - bundle exec cap production deploy -fi +if `git rev-parse --abbrev-ref HEAD`.strip == 'master' + exec "rvm install 2.1.2 && rvm 2.1.2 do bundle exec cap production deploy" +else + puts "Not on master branch - no deploy." +end