diff options
| author | Zachary Knight <zachk@knowbe4.com> | 2019-06-10 14:55:02 -0400 |
|---|---|---|
| committer | Zachary Knight <zachk@knowbe4.com> | 2019-06-10 14:55:02 -0400 |
| commit | 300a031bd4c9b4ee7dada95c01f4a0201ba5c5e3 (patch) | |
| tree | 75a54b13cef5177c6ffbe2dd3090a86e4b6dedce | |
| parent | 629bcf2cb75db3ec4dede0469a31dab449880a66 (diff) | |
changed bundle command
| -rwxr-xr-x | run.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
