From 300a031bd4c9b4ee7dada95c01f4a0201ba5c5e3 Mon Sep 17 00:00:00 2001 From: Zachary Knight Date: Mon, 10 Jun 2019 14:55:02 -0400 Subject: changed bundle command --- run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 8908c80..10a6e6b 100755 --- a/run.sh +++ b/run.sh @@ -94,6 +94,7 @@ case "$COMMAND" in analyze) # Analyze project + # Change current directory to the project path. APP_PATH=$1 shift @@ -103,6 +104,10 @@ case "$COMMAND" in # Before running license_finder, we need to install dependencies for the project. if test -f Gemfile ; then if test -n "$rvm_recommended_ruby" ; then + # Install the Ruby version RVM found in the project files + # This always end in the cryptic "bash: Searching: command not found" error but Ruby is installed + # So we ignore the error. + $($rvm_recommended_ruby) 2>/dev/null || true rvm use . gem install bundler # We need to install the license_finder gem into this Ruby version too. @@ -112,7 +117,7 @@ case "$COMMAND" in # Ignore test and development dependencies. license_finder ignored_groups add development license_finder ignored_groups add test - bundle install --without "development test" + bundle install skip_prepare=true fi -- cgit v1.2.3