From 71fd79c7520f555c3fba70d37215ee243d718c1e Mon Sep 17 00:00:00 2001 From: Congrool Date: Tue, 12 Oct 2021 20:05:08 +0800 Subject: [PATCH] fix some bugs when local up openyurt (#517) --- hack/lib/release-images.sh | 2 +- hack/local_up_openyurt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/lib/release-images.sh b/hack/lib/release-images.sh index ae2bc42bb1c..bf341e64fdf 100644 --- a/hack/lib/release-images.sh +++ b/hack/lib/release-images.sh @@ -50,7 +50,7 @@ readonly region=${REGION:-us} function get_image_name { # If ${GIT_COMMIT} is not at a tag, add commit to the image tag. if [[ -z $(git tag --points-at ${GIT_COMMIT}) ]]; then - yurt_component_image="${REPO}/$1:${TAG}-$2-$(expr substr ${GIT_COMMIT} 1 7)" + yurt_component_image="${REPO}/$1:${TAG}-$2-$(echo ${GIT_COMMIT} | cut -c 1-7)" else yurt_component_image="${REPO}/$1:${TAG}-$2" fi diff --git a/hack/local_up_openyurt.sh b/hack/local_up_openyurt.sh index 1e564c3934c..c61472d0c7a 100644 --- a/hack/local_up_openyurt.sh +++ b/hack/local_up_openyurt.sh @@ -182,7 +182,7 @@ function kind_load_images { fi echo "loading image ${imagename} to nodes" - local nodesarg=$(echo "${master} ${edgenodes[@]}" | sed "s/ /,/g") + local nodesarg=$(echo ${master} ${edgenodes[@]} | sed "s/ /,/g") kind load image-archive ${IMAGES_DIR}/${imagename} \ --name ${CLUSTER_NAME} --nodes ${nodesarg} done