diff options
| author | Jack Nagel | 2013-12-14 09:35:58 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-14 09:35:58 -0600 |
| commit | 8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0 (patch) | |
| tree | 910a366a7e412d4efc57a3714c47a4012ae1ec28 /Library/Homebrew/cmd | |
| parent | 1ed7284548d6e242667ece2d94f4da0b997ebc09 (diff) | |
| download | homebrew-8e2e76d99a3fdf0fab6dbcef5af2ec21677a63c0.tar.bz2 | |
Extract HOMEBREW_TEMP constant
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 62d266c08..cd0f23a79 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -681,8 +681,7 @@ def check_for_multiple_volumes # Find the volumes for the TMP folder & HOMEBREW_CELLAR real_cellar = HOMEBREW_CELLAR.realpath - tmp_prefix = ENV['HOMEBREW_TEMP'] || '/tmp' - tmp = Pathname.new with_system_path { `mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX` }.strip + tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXX` }.strip real_temp = tmp.realpath.parent where_cellar = volumes.which real_cellar @@ -703,8 +702,7 @@ end def check_filesystem_case_sensitive volumes = Volumes.new - tmp_prefix = Pathname.new(ENV['HOMEBREW_TEMP'] || '/tmp') - case_sensitive_vols = [HOMEBREW_PREFIX, HOMEBREW_REPOSITORY, HOMEBREW_CELLAR, tmp_prefix].select do |dir| + case_sensitive_vols = [HOMEBREW_PREFIX, HOMEBREW_REPOSITORY, HOMEBREW_CELLAR, HOMEBREW_TEMP].select do |dir| # We select the dir as being case-sensitive if either the UPCASED or the # downcased variant is missing. # Of course, on a case-insensitive fs, both exist because the os reports so. |
