Skip to content

Commit c6057fc

Browse files
JonRowepirj
authored andcommitted
Fix uninstall of newer bundler for old rails
1 parent cc39b7d commit c6057fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/downgrade_bundler_on_old_rails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
1212
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
1313

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

0 commit comments

Comments
 (0)