Skip to content

Commit

Permalink
intro: set -euo pipefail
Browse files Browse the repository at this point in the history
Any concerns enabling it to protect ourselves from the unexpected?

I ran a basic smoke test (`btrfs-auto-snapshot /srv -l 5minutely`),
that one worked. Anything you have in mind why it wouldn't?
  • Loading branch information
motiejus committed May 6, 2024
1 parent 777117e commit 174a989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion btrfs-auto-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA

#set -o errexit
set -euo pipefail

#set -o functrace
#set -o xtrace

Expand Down

0 comments on commit 174a989

Please sign in to comment.