I would like to execute the following command ruby do_task.rb && say "done".
The problem is that it say nothing if the command failed. How to fix it so that it would always say something (I don't mind if it say "failed" instead of "done", or just always say "done").
command && echo okmeans - print "ok" if command ended with success. If you wish to print something on fail you should use thiscommand || echo failor bothcommand && echo ok || echo failthat'll print "ok" on success or "fail" if something went wrong