From 7cd1972f39d20c1a7a2d044dd24ff884dce354d4 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Wed, 14 May 2025 01:39:47 +0800 Subject: [PATCH] Revert "cask/artifact/abstract_uninstall: fix `trash_paths`" --- Library/Homebrew/cask/artifact/abstract_uninstall.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/artifact/abstract_uninstall.rb index 4322777fc9..4773dc7982 100644 --- a/Library/Homebrew/cask/artifact/abstract_uninstall.rb +++ b/Library/Homebrew/cask/artifact/abstract_uninstall.rb @@ -464,9 +464,9 @@ module Cask args: paths, print_stderr: Homebrew::EnvConfig.developer? - trashed, = stdout.partition("\n") - trashed = trashed.split(":") & paths - untrashable = paths - trashed + trashed, _, untrashable = stdout.partition("\n") + trashed = trashed.split(":") + untrashable = untrashable.split(":") trashed_with_permissions, untrashable = untrashable.partition do |path| Utils.gain_permissions(path, ["-R"], SystemCommand) do