From ca8cd1d2b5350df4c4b1094a447e6c0c1021fbef Mon Sep 17 00:00:00 2001 From: casperklein Date: Sun, 18 Aug 2024 02:18:42 +0200 Subject: [PATCH] add comments, remove inherit_errexit --- target/scripts/start-mailserver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/scripts/start-mailserver.sh b/target/scripts/start-mailserver.sh index 71dc32f2..46d54c70 100755 --- a/target/scripts/start-mailserver.sh +++ b/target/scripts/start-mailserver.sh @@ -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