gentoo-ebuilds/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch
David Seifert 19d45f6786
dev-ruby/capistrano: [QA] use git-format-patch style patches
Signed-off-by: David Seifert <soap@gentoo.org>
2022-10-30 12:12:44 +01:00

11 lines
413 B
Diff

--- a/lib/capistrano/recipes/deploy.rb
+++ b/lib/capistrano/recipes/deploy.rb
@@ -462,7 +462,7 @@
DESC
task :cleanup, :except => { :no_release => true } do
count = fetch(:keep_releases, 5).to_i
- try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
+ run "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
end
desc <<-DESC