From 3bce735fc8f2960cd6f631645e2b34753b79da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Galv=C3=A3o?= Date: Thu, 26 Nov 2015 14:57:25 +0000 Subject: [PATCH] generic_unar.rb: use -force-overwrite --- lib/hbc/container/generic_unar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hbc/container/generic_unar.rb b/lib/hbc/container/generic_unar.rb index 20a8eeea2212..0a6315358567 100644 --- a/lib/hbc/container/generic_unar.rb +++ b/lib/hbc/container/generic_unar.rb @@ -12,7 +12,7 @@ def extract raise Hbc::CaskError.new "Expected to find unar executable. Cask #{@cask} must add: depends_on :formula => 'unar'" end Dir.mktmpdir do |unpack_dir| - @command.run!(unar, :args => ['-quiet', '-no-directory', '-output-directory', unpack_dir, '--', @path]) + @command.run!(unar, :args => ['-force-overwrite', '-quiet', '-no-directory', '-output-directory', unpack_dir, '--', @path]) @command.run!('/usr/bin/ditto', :args => ['--', unpack_dir, @cask.staged_path]) end end