lib/legion/extensions.rb in legionio-0.4.0 vs lib/legion/extensions.rb in legionio-0.4.1
- old
+ new
@@ -206,10 +206,10 @@
Legion::Logging.error "Failed to auto install #{extension}, e: #{e.message}"
end
return true if requested == enabled
Legion::Logging.warn "A total of #{requested - enabled} where skipped"
- if ENV['_'].include?('bundle')
+ if ENV.key?('_') && ENV['_'].include?('bundle')
Legion::Logging.warn 'Please add them to your Gemfile since you are using bundler'
else
Legion::Logging.warn 'You must have auto_install_missing_lex set to true to auto install missing extensions'
end
end