add comments, remove inherit_errexit

This commit is contained in:
casperklein 2024-08-18 02:18:42 +02:00
parent 310786453b
commit ca8cd1d2b5
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
#!/bin/bash
# When 'pipefail' is enabled, the exit status of the pipeline reflects the exit status of the last command that fails.
# Without 'pipefail', the exit status of a pipeline is determined by the exit status of the last command in the pipeline.
set -o pipefail
shopt -s globstar inherit_errexit
# allows usage of '**' in patterns, e.g. ls **/*
shopt -s globstar
# ------------------------------------------------------------
# ? >> Sourcing helpers & stacks