RedditEnjoyer@lemmy.world to Linux@lemmy.ml · 8 months agoA Linux user's nightmare: the machine was wiped clean with one clickwww.mikrobitti.fiexternal-linkmessage-square49fedilinkarrow-up1117file-textcross-posted to: technology@lemmy.world
arrow-up1117external-linkA Linux user's nightmare: the machine was wiped clean with one clickwww.mikrobitti.fiRedditEnjoyer@lemmy.world to Linux@lemmy.ml · 8 months agomessage-square49fedilinkfile-textcross-posted to: technology@lemmy.world
minus-squaredeadbeef79000@lemmy.nzlinkfedilinkarrow-up8·8 months agoYep! I always do this too. TL;DR: e aborts the whole script on a non-zero error. u aborts when using an undefined variable. -o pipefail aborts a piped compound command when one of the piped commands fail. Any other way lies madness. Or erasing the whole filesystem apparently!
Yep! I always do this too.
TL;DR:
e
aborts the whole script on a non-zero error.u
aborts when using an undefined variable.-o pipefail
aborts a piped compound command when one of the piped commands fail.Any other way lies madness. Or erasing the whole filesystem apparently!