Apply suggestions from code review

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Ian Gregory 2022-10-25 18:58:06 -04:00 committed by GitHub
parent a715dec49d
commit 9256a01afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ module Cask
ohai "Adopting existing #{self.class.english_name} at '#{target}'"
same = command.run(
"/usr/bin/diff",
args: ["-rq", source, target],
args: ["--recursive", "--brief", source, target],
verbose: verbose,
print_stdout: verbose,
).success?
@ -55,7 +55,7 @@ module Cask
"the one being installed."
end
# Simulate moving the source to the target location
# Remove the source as we don't need to move it to the target location
source.rmtree
return post_move(command)