• deadbeef79000@lemmy.nz
      link
      fedilink
      arrow-up
      8
      ·
      9 months ago

      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!