From 77728abbfc4c913ed91856e8c33d0911db0dc486 Mon Sep 17 00:00:00 2001
From: pseudoku <decrement@users.noreply.github.com>
Date: Thu, 4 May 2017 00:17:56 -0700
Subject: [PATCH] Remove unused command_args

Extra command_args in gain_permissions_remove caused silent failure and path never gets deleted.
---
 Library/Homebrew/cask/lib/hbc/utils.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb
index 2a5acbc88c..b2b65a08e0 100644
--- a/Library/Homebrew/cask/lib/hbc/utils.rb
+++ b/Library/Homebrew/cask/lib/hbc/utils.rb
@@ -43,7 +43,7 @@ module Hbc
             p.rmtree
           else
             command.run("/bin/rm",
-                        args: command_args + ["-r", "-f", "--", p],
+                        args: ["-r", "-f", "--", p],
                         sudo: true)
           end
         end
-- 
GitLab