From b4c0212b2a318edbe23587cc02cde5d61e215ec3 Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Wed, 7 Feb 2024 11:08:34 -0800 Subject: [PATCH] handle empty DEPLOY_CHART_PATH (#51) --- deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index afc042e..fc6a641 100644 --- a/deploy.sh +++ b/deploy.sh @@ -194,10 +194,14 @@ HELM_COMMAND="${HELM_COMMAND} ${DEPLOY_NAME}" if [ "${HELM_ACTION}" == "install" ]; then if [ "${OCI_REGISTRY}" == "true" ]; then - DEPLOY_CHART_PATH="${HELM_REPOSITORY}/${DEPLOY_CHART_PATH}" + if [ -n "${DEPLOY_CHART_PATH}" ]; then + DEPLOY_CHART_PATH="${HELM_REPOSITORY}/${DEPLOY_CHART_PATH}" + else + DEPLOY_CHART_PATH="${HELM_REPOSITORY}" + fi fi HELM_COMMAND="${HELM_COMMAND} ${DEPLOY_CHART_PATH}" fi echo "Executing: ${HELM_COMMAND} ${HELM_EXTRA_ARGS}" -${HELM_COMMAND} ${HELM_EXTRA_ARGS} \ No newline at end of file +${HELM_COMMAND} ${HELM_EXTRA_ARGS}