From 54c4580871f1e029f2d18343bb65b27450d807cd Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 29 May 2017 01:21:36 +0200 Subject: Use `XDG_CACHE_HOME` for RuboCop. --- Library/Homebrew/cask/lib/hbc/cli/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cask/lib') diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb index 078796e7e..03159a0cf 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/style.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb @@ -11,7 +11,7 @@ module Hbc def run install_rubocop - system "rubocop", *rubocop_args, "--", *cask_paths + system({ "XDG_CACHE_HOME" => HOMEBREW_CACHE }, "rubocop", *rubocop_args, "--", *cask_paths) raise CaskError, "style check failed" unless $CHILD_STATUS.success? true end -- cgit v1.2.3