Update script to exit on immediate failure (#10815)

This commit is contained in:
Wilken Rivera 2021-03-23 16:44:21 -04:00 committed by GitHub
parent 89931d0f2a
commit 1d53080625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -126,7 +126,7 @@ if [ -n "${PACKER_DEV+x}" ]; then
fi fi
export CGO_ENABLED=0 export CGO_ENABLED=0
set +e
${GOX:?command not found} \ ${GOX:?command not found} \
-os="${XC_OS:-$ALL_XC_OS}" \ -os="${XC_OS:-$ALL_XC_OS}" \
-arch="${XC_ARCH:-$ALL_XC_ARCH}" \ -arch="${XC_ARCH:-$ALL_XC_ARCH}" \
@ -134,7 +134,6 @@ ${GOX:?command not found} \
-ldflags "${GOLDFLAGS}" \ -ldflags "${GOLDFLAGS}" \
-output "pkg/{{.OS}}_{{.Arch}}/packer" \ -output "pkg/{{.OS}}_{{.Arch}}/packer" \
. .
set -e
# trim GOPATH to first element # trim GOPATH to first element
IFS="${PATHSEP}" IFS="${PATHSEP}"