summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Melnyk <gipson.ukr@gmail.com>2016-03-16 02:11:50 +0200
committerAndrii Melnyk <gipson.ukr@gmail.com>2016-03-16 02:11:50 +0200
commit1d06770397bb1017b03333b8a7b4feec549e8412 (patch)
tree05a015157b0123e633bbc75e132e7dba0f6f7690
parentc1a389c2a8452e9b796aa1d34c4d9e51f4af30c7 (diff)
downloadchef-1d06770397bb1017b03333b8a7b4feec549e8412.tar.gz
fix for #4715
-rw-r--r--lib/chef/provider/package/homebrew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/homebrew.rb b/lib/chef/provider/package/homebrew.rb
index 853a354b28..a105f6d7d0 100644
--- a/lib/chef/provider/package/homebrew.rb
+++ b/lib/chef/provider/package/homebrew.rb
@@ -127,7 +127,7 @@ class Chef
Chef::Log.debug "Executing '#{command}' as user '#{homebrew_user.name}'"
# FIXME: this 1800 second default timeout should be deprecated
- output = shell_out_with_timeout!(command, :timeout => 1800, :user => homebrew_uid, :environment => { "HOME" => homebrew_user.dir, "RUBYOPT" => nil })
+ output = shell_out_with_timeout!(command, :timeout => 1800, :user => homebrew_uid, :environment => { "HOME" => homebrew_user.dir, "RUBYOPT" => nil, "TMPDIR" => nil })
output.stdout.chomp
end