From 72f8c6841b1c5633785f400101c26435c548a9cc Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 16 Jun 2023 11:33:41 +0800 Subject: [PATCH] script --- script/build_push_k8s_images.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/build_push_k8s_images.sh b/script/build_push_k8s_images.sh index efd092c19..50c194dda 100644 --- a/script/build_push_k8s_images.sh +++ b/script/build_push_k8s_images.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash version=errcode repository=${1} -if [ -z ${repository} ] -exit 0 +if [[ -z ${repository} ]] +then + echo "repository is empty" + exit 0 fi set +e