aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-29 01:21:36 +0200
committerMarkus Reiter2017-05-29 01:31:38 +0200
commit54c4580871f1e029f2d18343bb65b27450d807cd (patch)
tree08c41e0f058526bdd8331229a9d147d4b97494b2 /Library/Homebrew/cask/lib/hbc/cli
parent803f9cbf7ba27ec700ffdfffb976d9b60a5f9deb (diff)
downloadbrew-54c4580871f1e029f2d18343bb65b27450d807cd.tar.bz2
Use `XDG_CACHE_HOME` for RuboCop.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb2
1 files changed, 1 insertions, 1 deletions
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