Update script to exit on immediate failure (#10815)
This commit is contained in:
parent
89931d0f2a
commit
1d53080625
|
@ -126,7 +126,7 @@ if [ -n "${PACKER_DEV+x}" ]; then
|
|||
fi
|
||||
|
||||
export CGO_ENABLED=0
|
||||
set +e
|
||||
|
||||
${GOX:?command not found} \
|
||||
-os="${XC_OS:-$ALL_XC_OS}" \
|
||||
-arch="${XC_ARCH:-$ALL_XC_ARCH}" \
|
||||
|
@ -134,7 +134,6 @@ ${GOX:?command not found} \
|
|||
-ldflags "${GOLDFLAGS}" \
|
||||
-output "pkg/{{.OS}}_{{.Arch}}/packer" \
|
||||
.
|
||||
set -e
|
||||
|
||||
# trim GOPATH to first element
|
||||
IFS="${PATHSEP}"
|
||||
|
|
Loading…
Reference in New Issue