mirror of https://github.com/poanetwork/gecko.git
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:
commit
f247f1c007
|
@ -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
|
# Ted: contact me when you make any changes
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
SRC_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
SRC_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||||
export GOPATH="$SRC_DIR/.build_image_gopath"
|
export GOPATH="$SRC_DIR/.build_image_gopath"
|
||||||
WORKPREFIX="$GOPATH/src/github.com/ava-labs/"
|
WORKPREFIX="$GOPATH/src/github.com/ava-labs/"
|
||||||
|
|
|
@ -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
|
# Ted: contact me when you make any changes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue