Merge pull request #6158 from amyspark/fix-empty-trashing
Skip :trash step if no paths exist
This commit is contained in:
commit
0ff2afdfa8
@ -320,6 +320,8 @@ module Cask
|
||||
end
|
||||
|
||||
def trash_paths(*paths, command: nil, **_)
|
||||
return if paths.empty?
|
||||
|
||||
result = command.run!("/usr/bin/swift", args: [TRASH_SCRIPT, *paths])
|
||||
|
||||
# Remove AppleScript's automatic newline.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user