aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-29 02:40:49 +0200
committerGitHub2017-05-29 02:40:49 +0200
commit52b54aaeb9513500331228b9b1efee34f0174880 (patch)
tree3b769bdc5a6cfdecbfffa765e42c91efeb6afac8 /Library/Homebrew/cask
parent803f9cbf7ba27ec700ffdfffb976d9b60a5f9deb (diff)
parentdc4f30393741ab7bc8115fa68d8bbbee404f22d9 (diff)
downloadbrew-52b54aaeb9513500331228b9b1efee34f0174880.tar.bz2
Merge pull request #2690 from reitermarkus/rubocop-cache
Use `XDG_CACHE_HOME` for RuboCop.
Diffstat (limited to 'Library/Homebrew/cask')
-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