diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/homebrew_cask.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/homebrew_cask.rb b/lib/chef/resource/homebrew_cask.rb index 2b0478f826..4f46cd9658 100644 --- a/lib/chef/resource/homebrew_cask.rb +++ b/lib/chef/resource/homebrew_cask.rb @@ -89,7 +89,7 @@ class Chef def casked? unscoped_name = new_resource.cask_name.split("/").last - shell_out!('#{new_resource.homebrew_path} cask list 2>/dev/null', + shell_out!("#{new_resource.homebrew_path} cask list 2>/dev/null", user: new_resource.owner, env: { "HOME" => ::Dir.home(new_resource.owner), "USER" => new_resource.owner }, cwd: ::Dir.home(new_resource.owner)).stdout.split.include?(unscoped_name) |