View Single Post
Old 08-30-2013, 04:57 PM   #5
knauck
root
knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.knauck is faster than slow light.
 
Posts: 26
Karma: 29272
Join Date: Jul 2013
Location: ntldll.dll
Device: Kindle Paperwhite
Quote:
Originally Posted by NiLuJe View Post
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.
knauck is offline   Reply With Quote