From e3f3c5de50ae071faec393f6405eb7a9c81c534a Mon Sep 17 00:00:00 2001 From: celdem Date: Mon, 16 Dec 2019 13:30:05 +0000 Subject: Use bundled with information --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 11fb99a..404cf2b 100755 --- a/run.sh +++ b/run.sh @@ -111,9 +111,10 @@ case "$COMMAND" in # So we ignore the error. $($rvm_recommended_ruby) 2>/dev/null || true rvm use . + bundler_version=$(grep -A1 "BUNDLED WITH" Gemfile.lock | tail -n 1) + gem install bundler -v "${bundler_version}" || gem install bundler # rvm pulls outdated gems # need this to update system bundler - gem update --system # We need to install the license_finder gem into this Ruby version too. gem install license_finder -v "$LICENSE_FINDER_VERSION" gem install --no-document /opt/license-management/*.gem -- cgit v1.2.3