From a6a2bb6ee372cf2ebd2202d50a996546e74dced9 Mon Sep 17 00:00:00 2001 From: Steven Fraser Date: Fri, 8 Jul 2022 15:14:43 -0400 Subject: [PATCH] adding protection against already rendered --- src/bashly.yml | 2 +- src/github_command.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bashly.yml b/src/bashly.yml index b702a2a..afbabd9 100644 --- a/src/bashly.yml +++ b/src/bashly.yml @@ -1,6 +1,6 @@ name: cli help: Post Deployment Template Render -version: 0.1.1 +version: 0.1.2 commands: diff --git a/src/github_command.sh b/src/github_command.sh index f982660..a5ba61a 100644 --- a/src/github_command.sh +++ b/src/github_command.sh @@ -36,7 +36,7 @@ cat ${TEMPLATE_PATH} | envsubst > ${TEMPLATE_PATH}.tmp mv ${TEMPLATE_PATH}.tmp ${TEMPLATE_PATH} git add ${TEMPLATE_PATH} -git commit -m "Updating variables" -git push +git commit -m "Updating variables" || true +git push || true rm -rf /tmp/${GITOPS_REPO_NAME} \ No newline at end of file