Skip to content

Commit

Permalink
Fix uninstall of newer bundler for old rails
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Dec 29, 2019
1 parent 6191d45 commit 4625127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/downgrade_bundler_on_old_rails
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"

# this only works on Ruby 2.3 which is luckily the version we need to fix
if is_ruby_23; then
if ruby -e "exit(RUBY_VERSION.to_f == 2.3)"; then
rvm @global do gem uninstall -aIx bundler
fi

Expand Down

0 comments on commit 4625127

Please sign in to comment.