fix shellcheck failure

This commit is contained in:
tanshanshan
2019-01-22 08:39:55 +08:00
parent dc3edee5f5
commit 529cfd1437
5 changed files with 13 additions and 17 deletions

View File

@@ -26,16 +26,16 @@ set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT="$(dirname "${BASH_SOURCE}")/.."
KUBE_ROOT="$(dirname "${BASH_SOURCE[0]}")/.."
source "${KUBE_ROOT}/build/common.sh"
if [[ -z "${REGISTRY:-}" ]]; then
echo "REGISTRY must be set"
exit -1
exit 1
fi
if [[ -z "${VERSION:-}" ]]; then
echo "VERSION must be set"
exit -1
exit 1
fi
IMAGE="${REGISTRY}/conformance-amd64:${VERSION}"