From a5fc2ec834b9ac0e061b0bcf89b9f3c42d3d56a3 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" <13498015+amyspark@users.noreply.github.com> Date: Tue, 21 May 2019 12:56:23 +0000 Subject: [PATCH] Skip :trash step if no paths exist Fixes Homebrew/cask#63583 --- Library/Homebrew/cask/artifact/abstract_uninstall.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cask/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/artifact/abstract_uninstall.rb index 206f0d380a..d2b43e02b1 100644 --- a/Library/Homebrew/cask/artifact/abstract_uninstall.rb +++ b/Library/Homebrew/cask/artifact/abstract_uninstall.rb @@ -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.