Checking if a variable already exists

Signed-off-by: Junior Santos <claudio.dossantosjunior@yahoo.com.br>
This commit is contained in:
Junior Santos 2020-07-08 19:51:56 -03:00
parent ecf335ad65
commit c69a2dc745

View File

@ -42,8 +42,14 @@ OFFICIAL_RELEASE=${OFFICIAL_RELEASE:-false}
# LOCAL_RELEASE indicates that containerd has been built and released # LOCAL_RELEASE indicates that containerd has been built and released
# locally. # locally.
LOCAL_RELEASE=${LOCAL_RELEASE:-false} LOCAL_RELEASE=${LOCAL_RELEASE:-false}
if [ -z "${GOOS:-}" ]
then
GOOS=$(go env GOOS) GOOS=$(go env GOOS)
fi
if [ -z "${GOARCH:-}" ]
then
GOARCH=$(go env GOARCH) GOARCH=$(go env GOARCH)
fi
destdir=${BUILD_DIR}/release-stage destdir=${BUILD_DIR}/release-stage