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
|
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}"
|
||||||
|
|
Loading…
Reference in New Issue