mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-06-08 19:00:55 +00:00
Removing traps, needs bigger discussion, breaking into another PR
This commit is contained in:
parent
3e341b1e27
commit
84c643223e
@ -3,8 +3,7 @@
|
||||
# -u: exit if we have a variable typo.
|
||||
# -o pipefail: don't ignore errors in the non-last command in a pipeline
|
||||
set -euo pipefail
|
||||
trap 'rc=$?; echo "$0: Error on line $LINENO running $BASH_COMMAND which had the following exit code $rc" 1>&2' EXIT
|
||||
trap 'rc=$?; echo "$0: Error on line $LINENO running $BASH_COMMAND which had the following exit code $rc" 1>&2' ERR
|
||||
|
||||
function hide_output {
|
||||
# This function hides the output of a command unless the command fails
|
||||
# and returns a non-zero exit code.
|
||||
|
Loading…
Reference in New Issue
Block a user