Skip to content

Commit

Permalink
Call diff using sshkit's command map
Browse files Browse the repository at this point in the history
To allow overriding of the diff binary location when required
  • Loading branch information
caius committed Dec 16, 2016
1 parent 002b465 commit 0e83881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/migrations.rake
Expand Up @@ -7,7 +7,7 @@ namespace :deploy do
on fetch(:migration_servers) do
conditionally_migrate = fetch(:conditionally_migrate)
info '[deploy:migrate] Checking changes in db' if conditionally_migrate
if conditionally_migrate && test("diff -qr #{release_path}/db #{current_path}/db")
if conditionally_migrate && test(:diff, "-qr #{release_path}/db #{current_path}/db")
info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db)'
else
info '[deploy:migrate] Run `rake db:migrate`'
Expand Down

0 comments on commit 0e83881

Please sign in to comment.