diff options
| author | Jack Nagel | 2013-10-08 23:44:23 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-10-08 23:44:23 -0500 |
| commit | 4870e2183e7776dde55ae4c9e48dfec0d3b6863e (patch) | |
| tree | 05f2ff63ab6d854a22909f6a723201651038b376 /Library/Homebrew/cmd | |
| parent | 1c27bcdaec9da72830f11c6ff4324150f15259b1 (diff) | |
| download | homebrew-4870e2183e7776dde55ae4c9e48dfec0d3b6863e.tar.bz2 | |
Prefer interpolation to concatenation
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 07d51c345..f53e8034a 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -954,7 +954,7 @@ def check_for_bad_python_symlink end def check_for_non_prefixed_coreutils - gnubin = Formula.factory('coreutils').prefix.to_s + "/libexec/gnubin" + gnubin = "#{Formula.factory('coreutils').prefix}/libexec/gnubin" if paths.include? gnubin then <<-EOS.undent Putting non-prefixed coreutils in your path can cause gmp builds to fail. EOS @@ -970,7 +970,7 @@ def check_for_non_prefixed_findutils end def check_for_pydistutils_cfg_in_home - if File.exist? ENV['HOME']+'/.pydistutils.cfg' then <<-EOS.undent + if File.exist? "#{ENV['HOME']}/.pydistutils.cfg" then <<-EOS.undent A .pydistutils.cfg file was found in $HOME, which may cause Python builds to fail. See: http://bugs.python.org/issue6138 |
