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

@@ -20,12 +20,11 @@ set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
# Build a dev release
make -f ${KUBE_ROOT}/Makefile quick-release
if [ "$?" != "0" ]; then
if ! make -f "${KUBE_ROOT}"/Makefile quick-release
then
echo "Building a release failed!"
exit 1
fi