Revert "cask/artifact/abstract_uninstall: fix trash_paths"
				
					
				
			This commit is contained in:
		
							parent
							
								
									17de33e9ef
								
							
						
					
					
						commit
						7cd1972f39
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user