fix initial deploy (return value) [ci skip]

This commit is contained in:
wvengen 2014-03-03 17:03:24 +01:00
parent cd32f702b0
commit fccdaccb8d
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ namespace :deploy do
path = releases_path.join(capture(:ls, releases_path).split("\n").sort.last)
fetch(:linked_files).each do |file|
# TODO copy only if existing destination has zero length
execute "[ -e '#{path.join(file)}' ] && cp '#{path.join(file)}' '#{shared_path.join(file)}'"
execute "if [ -e '#{path.join(file)}' ]; then cp '#{path.join(file)}' '#{shared_path.join(file)}'; fi"
end
end
end