mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
Use ENV.update to restore removed variables
This commit is contained in:
1 parent
9b4e07c39a
commit
bc01c8f939
1 file changed
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user