mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1995 from aeroastro/feature/avoid-using-string
Simplify code on removing old directories by skipping `Array#join`
This commit is contained in:
commit
86362cf727
1 changed files with 1 additions and 2 deletions
|
@ -168,8 +168,7 @@ namespace :deploy do
|
||||||
debug t(:no_current_release, host: host.to_s)
|
debug t(:no_current_release, host: host.to_s)
|
||||||
end
|
end
|
||||||
if directories.any?
|
if directories.any?
|
||||||
directories_str = directories.join(" ")
|
execute :rm, "-rf", *directories
|
||||||
execute :rm, "-rf", directories_str
|
|
||||||
else
|
else
|
||||||
info t(:no_old_releases, host: host.to_s, keep_releases: fetch(:keep_releases))
|
info t(:no_old_releases, host: host.to_s, keep_releases: fetch(:keep_releases))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue