From bda37685fd45cc624bfe0958f748e59f958bca5e Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Wed, 7 Jun 2023 14:40:33 +0300 Subject: [PATCH] fix: make action backward compatible --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index c6289ab..e009c02 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,9 +22,9 @@ if [ -n "${CODER_TEMPLATE_VERSION}" ]; then push_command+=" --name ${CODER_TEMPLATE_VERSION}" fi -# Add activate flag to the push command if specified -if [ -n "${CODER_TEMPLATE_ACTIVATE}" ]; then - push_command+=" --activate=${CODER_TEMPLATE_ACTIVATE}" +# Add activate flag to the push command if it is false +if [ "${CODER_TEMPLATE_ACTIVATE}" = "false" ]; then + push_command+=" --activate=false" fi # Add confirmation flag to the push command