Exit on all errors in bash scripts when possible
Except for the collect-test-info script, the other bash scripts should just exit on error. Change-Id: Ia68bef56edd7edec14f678155220b6e4e15e57f6
This commit is contained in:
parent
5360d0e869
commit
422bafd6ea
@ -2,8 +2,7 @@
|
||||
|
||||
# Note(TheJulia): We should proceed with attempting to collect information
|
||||
# even if a command fails, and as such set -e should not be present.
|
||||
set -ux
|
||||
set -o pipefail
|
||||
set -uxo pipefail
|
||||
|
||||
# Note(TheJulia): If there is a workspace variable, we want to utilize that as
|
||||
# the preference of where to put logs
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
. $(dirname $0)/install-deps.sh
|
||||
# NOTE(pas-ha) the above exports some useful variables like
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -euxo pipefail
|
||||
|
||||
if [[ "${BIFROST_TRACE:-}" == true ]]; then
|
||||
set -x
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
set -euxo pipefail
|
||||
|
||||
export PYTHONUNBUFFERED=1
|
||||
SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)"
|
||||
BIFROST_HOME=$SCRIPT_HOME/..
|
||||
|
Loading…
Reference in New Issue
Block a user