diff options
Diffstat (limited to 'lib/bundler/constants.rb')
-rw-r--r-- | lib/bundler/constants.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/constants.rb b/lib/bundler/constants.rb index 2e4ebb37ee..de9698b577 100644 --- a/lib/bundler/constants.rb +++ b/lib/bundler/constants.rb @@ -2,6 +2,6 @@ module Bundler WINDOWS = RbConfig::CONFIG["host_os"] =~ /(msdos|mswin|djgpp|mingw)/ - FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/ - NULL = WINDOWS ? "NUL" : "/dev/null" + FREEBSD = RbConfig::CONFIG["host_os"].to_s.include?("bsd") + NULL = File::NULL end |