Quote:
Originally Posted by NiLuJe
Wrapping up everything in tests is a good way to avoid everything blowing up if something's missing/wrong/broken.
(For debugging purposes (of the inlined parts of the script), testing test your scripts with a shell in -e mode is also a good practice, especially if you rely on external tools with broken return codes).
Cf. dos1's tool for more examples, or the upstart jobs of the SS/Fonts hacks).
|
Yeah and I forgot to mention that adding a return code of 0 is a good idea, too.