Merge pull request #155 from moreati/bash-strict

build: Fail loudly if bash variables are unset, or a pipeline errors
This commit is contained in:
Stephen Buttolph 2020-05-12 22:18:59 -04:00 committed by GitHub
commit f247f1c007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,8 @@
#!/bin/bash -e
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# Ted: contact me when you make any changes

View File

@ -1,4 +1,9 @@
#!/bin/bash -e
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
SRC_DIR="$(dirname "${BASH_SOURCE[0]}")"
export GOPATH="$SRC_DIR/.build_image_gopath"
WORKPREFIX="$GOPATH/src/github.com/ava-labs/"

View File

@ -1,4 +1,8 @@
#!/bin/bash -e
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# Ted: contact me when you make any changes