Skip to content

Commit c2e6d3e

Browse files
JonRowebenoittgt
authored andcommitted
Prevent uninstalling bundler on newer rails
1 parent 7683b7c commit c2e6d3e

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
@@ -5,7 +5,7 @@
55
set -e
66
source script/functions.sh
77

8-
if ruby -e "exit(ENV['RAILS_VERSION'].to_f < 5)"; then
8+
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
gem uninstall -aIx bundler

0 commit comments

Comments
 (0)