Skip to content

Commit c07aafb

Browse files
committed
debug
1 parent f0bee2c commit c07aafb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/downgrade_bundler_on_old_rails

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ if ruby -e "exit(ENV['RAILS_VERSION'].scan(/\d+\.\d+.\d+/)[0].to_f < 5)"; then
99
# On Rails versions less than 5, Bundler 2.0 is not supported
1010
echo "Warning dowgrading to older version of Bundler"
1111

12+
echo "debug"
1213
set +e
14+
echo "attempt 1"
1315
gem uninstall -aIx bundler || echo "Warning error occured removing bundler via gem"
1416
set -e
1517

1618
# this only works on Ruby 2.3 which is luckily the version we need to fix
19+
echo "check ruby"
1720
if is_ruby_23_plus; then
21+
echo "attempt 2"
1822
rvm @global do gem uninstall -aIx bundler
1923
fi
24+
echo "ok..."
2025

2126
gem install bundler -v '1.17.3'
2227
fi

0 commit comments

Comments
 (0)