diff --git a/lib/capistrano/tasks/deploy.rake b/lib/capistrano/tasks/deploy.rake index 5ff8c9a1..617c7bca 100644 --- a/lib/capistrano/tasks/deploy.rake +++ b/lib/capistrano/tasks/deploy.rake @@ -168,8 +168,7 @@ namespace :deploy do debug t(:no_current_release, host: host.to_s) end if directories.any? - directories_str = directories.join(" ") - execute :rm, "-rf", directories_str + execute :rm, "-rf", *directories else info t(:no_old_releases, host: host.to_s, keep_releases: fetch(:keep_releases)) end