diff options
| author | Jack Nagel | 2013-08-20 18:51:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-20 18:51:11 -0500 |
| commit | bc01c8f93972c5da7b09ca8daa3ec9a07fe03e70 (patch) | |
| tree | 56364630afe1d4727b1cce9a0be53161146a75f1 /Library | |
| parent | 9b4e07c39aee81d2d7f1888ad105a9d1bfbce763 (diff) | |
| download | homebrew-bc01c8f93972c5da7b09ca8daa3ec9a07fe03e70.tar.bz2 | |
Use ENV.update to restore removed variables
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index bb1d91687..c54df055d 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -583,9 +583,7 @@ class Formula raise BuildError.new(self, cmd, args, $?) ensure f.close if f and not f.closed? - removed_ENV_variables.each do |key, value| - ENV[key] = value - end if removed_ENV_variables + ENV.update(removed_ENV_variables) if removed_ENV_variables end private |
