Skip to content

Commit

Permalink
Merge pull request #15426 from caskroom/generic_unar-force-overwrite
Browse files Browse the repository at this point in the history
generic_unar.rb: use -force-overwrite
  • Loading branch information
vitorgalvao committed Dec 9, 2015
2 parents 1ec989b + 3bce735 commit d2674ce
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 d2674ce

Please sign in to comment.