#!/bin/sh

set -evx

bundler_version=$(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
gem install bundler -v $bundler_version
bundle _${bundler_version}_ install

#!/bin/sh

set -evx

gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2)
gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
bundle install

--- 
+++ 
@@ -2,6 +2,6 @@
 
 set -evx
 
-bundler_version=$(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
-gem install bundler -v $bundler_version
-bundle _${bundler_version}_ install
+gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2)
+gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
+bundle install
Use desired bundler to bundle install
