From 5776d628488f7f109f806b5e53c054315a285ef1 Mon Sep 17 00:00:00 2001 From: Brian Downs Date: Wed, 13 Sep 2023 10:39:29 -0700 Subject: [PATCH] add quotes Signed-off-by: Brian Downs --- bin/rancher_image_chart_promote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rancher_image_chart_promote.sh b/bin/rancher_image_chart_promote.sh index 6853e162..317ce413 100644 --- a/bin/rancher_image_chart_promote.sh +++ b/bin/rancher_image_chart_promote.sh @@ -70,7 +70,7 @@ until [ ${PAGE} -gt 100 ]; do done echo "Found build number ${BUILD_NUMBER} for tag ${SOURCE_TAG}" -if [ ${DRY_RUN} = true ]; then +if [ "${DRY_RUN}" = true ]; then CMD="drone build promote rancher/rancher ${BUILD_NUMBER} promote-docker-image --param=SOURCE_TAG=${SOURCE_TAG} --param=DESTINATION_TAG=${DESTINATION_TAG}" echo "${CMD}" else @@ -86,7 +86,7 @@ if [ ! -n "${BUILD_NUMBER}" ]; then exit 1 fi -if [ ${DRY_RUN} = true ]; then +if [ "${DRY_RUN}" = true ]; then CMD="drone build promote rancher/rancher ${BUILD_NUMBER} promote-stable" echo "${CMD}" else