capistrano/capistrano — pull request #454 by joshstaiger (2013-04-24 17:57:04+00:00)
Title: For deploy:cleanup, use try_sudo with rm command.

Fix a bug where sudo is not used when removing files with the deploy:cleanup command.

Prior to this fix, "sudo" only applied to the first command (ls) in the pipe sequence. This changes things so it applies to the "rm" command at the end of the pipe sequence as well, which is the intent.