diff --git a/lib/capistrano/tasks/assets.rake b/lib/capistrano/tasks/assets.rake index 49b38f1..326a032 100644 --- a/lib/capistrano/tasks/assets.rake +++ b/lib/capistrano/tasks/assets.rake @@ -107,7 +107,7 @@ namespace :deploy do manifest*.* ).each do |pattern| candidate = release_path.join('public', fetch(:assets_prefix), pattern) - return capture(:ls, candidate).strip if test(:ls, candidate) + return capture(:ls, candidate).strip.gsub(/(\r|\n)/,' ') if test(:ls, candidate) end msg = 'Rails assets manifest file not found.' warn msg