aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-02 12:59:38 -0500
committerJack Nagel2014-05-02 12:59:38 -0500
commit1ff182ae68eeeba5462532b997af30030e09afe0 (patch)
treee943a1906c510884be69b1742171fe3a8472e169 /Library
parent2d156f06c88b8c8971f7ad9953db3405a15ef13f (diff)
downloadbrew-1ff182ae68eeeba5462532b997af30030e09afe0.tar.bz2
Set ENV variables to strings, not pathnames
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 4874aeb96..d482fd1a3 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -106,7 +106,7 @@ begin
Homebrew.send cmd.to_s.gsub('-', '_').downcase
elsif which "brew-#{cmd}"
%w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
- ENV["HOMEBREW_#{e}"] = Object.const_get "HOMEBREW_#{e}"
+ ENV["HOMEBREW_#{e}"] = Object.const_get("HOMEBREW_#{e}").to_s
end
exec "brew-#{cmd}", *ARGV
elsif require? which("brew-#{cmd}.rb").to_s