Capistrano & Bash: ignore command exit status

前端 未结 7 582
礼貌的吻别
礼貌的吻别 2021-01-31 14:11

I\'m using Capistrano run a remote task. My task looks like this:

task :my_task do
  run \"my_command\"
end

My problem is that if my_comm

相关标签:
7条回答
  • 2021-01-31 15:06

    For Capistrano 3, you can (as suggested here) use the following:

    execute "some_command.sh", raise_on_non_zero_exit: false
    
    0 讨论(0)
提交回复
热议问题