summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh3
1 files changed, 2 insertions, 1 deletions
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