Bail out if versions match

Closes coop-cloud/abra#87.
This commit is contained in:
Luke Murphy 2021-03-04 13:20:58 +01:00
parent 5931cbd791
commit 65ce949e03
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

5
abra
View File

@ -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