I apologize in advance if this is a duplicate question. I did make an effort to search/check before asking here.
I'm comfortable with writing one-liners like this:
foocommand && foocommand2 && foocommand3
The idea being that I only want subsequent commands to run if the previous one was "successful".
I'm writing a somewhat lengthy script and this one-liner isn't feasible because it looks like a huge block of confusing code to everyone else.
I want to space out the commands and write comments inbetween them in the script. How can I do this and still have the equivalent of && in there?