bin/softwear-deploy in softwear-lib-1.2.10 vs bin/softwear-deploy in softwear-lib-1.2.11
- old
+ new
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
-if `git rev-parse --abbrev-ref HEAD`.strip == 'master'
+if ENV['TRAVIS_BRANCH'] == (ENV['DEPLOY_BRANCH'] || '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