# Rake: How to keep proceeding if one command fails?

**URL:** <https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827>\
**Category:** Ruby\
**Created:** [August 3, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827 "2006-08-03T15:28:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9dc877/32.png) [@luc](https://www.ruby-forum.com/u/luc)\
**Post date:** [August 3, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827/1 "2006-08-03T15:28:42Z")

</div>

Hi All,

Could you tell me how I could do to have rake to run all the tasks no  
matter the result of the previous one(s)?

ex:

file ‘xxx.c’ =\> [‘xxx.h’] do  
if(sh(blablabla))  
puts “do this”  
else  
puts “do this”  
end

end

When for exemple the sh command failed, it quits and does not run the  
rest of the scripts. How can I make this happen?

Thanks,

Luc

---

<div class="post-metadata">

**Author:** ![luc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9dc877/32.png) [@luc](https://www.ruby-forum.com/u/luc)\
**Post date:** [August 5, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/rake-how-to-keep-proceeding-if-one-command-fails/102827/2 "2006-08-05T19:51:24Z")

</div>

Make systems generally don’t do this. Make, ant and the rest are  
designed to give up when a failure occurs, so the developer can take  
action to correct it.
