Skip to content

Commit

Permalink
generic_unar.rb: use -force-overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Nov 26, 2015
1 parent eb42011 commit 3bce735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hbc/container/generic_unar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bce735

Please sign in to comment.