Skip to content

Commit

Permalink
Fix deploy:log_revision so that echo command obeys within
Browse files Browse the repository at this point in the history
As the execute statement is not split by command and arguments the within block is ignored. Switching to `execute :cmd, "args"` solves this problem

Signed-off-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
  • Loading branch information
Theo Cushion authored and gcapizzi committed Jun 18, 2015
1 parent ad61d92 commit f066c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/deploy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace :deploy do
task :log_revision do
on release_roles(:all) do
within releases_path do
execute %{echo "#{revision_log_message}" >> #{revision_log}}
execute :echo, %{"#{revision_log_message}" >> #{revision_log}}
end
end
end
Expand Down

0 comments on commit f066c25

Please sign in to comment.