From 65ce949e03beff9c390fd7c0df877a5fd2c52803 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 4 Mar 2021 13:20:58 +0100 Subject: [PATCH] Bail out if versions match Closes https://git.autonomic.zone/coop-cloud/abra/issues/87. --- abra | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abra b/abra index f7349e8..3aaec09 100755 --- a/abra +++ b/abra @@ -912,6 +912,11 @@ sub_app_deploy (){ version_msg=" Version: $(tput setaf 2)${ABRA_TYPE_VERSION} (digest: ${ABRA_TYPE_DIGEST})$(tput sgr0)" if [ -n "$deployed_version" ] && [ -n "$deployed_digest" ]; then + if [ "$ABRA_TYPE_VERSION" == "$deployed_version" ] && [ "$ABRA_TYPE_DIGEST" == "$deployed_digest" ]; then + success "Nothing to deploy right now. Congratulations, you're on the latest version" + exit 0 + fi + require_consent_for_update if [ "$ABRA_TYPE_VERSION" != "$deployed_version" ]; then