From 18b9fe094475b8b245a144842c423c0ad972aac8 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 23 Apr 2021 12:46:53 +0200 Subject: [PATCH] Cancel update, if latest version already active --- bin/update-minecraft-server-jar | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/update-minecraft-server-jar b/bin/update-minecraft-server-jar index aab47cf..450c5a9 100755 --- a/bin/update-minecraft-server-jar +++ b/bin/update-minecraft-server-jar @@ -404,13 +404,13 @@ main() { check_preferences detecting_cur_version get_upstream_info + if [[ "${UPSTREAM_VERSION}" == "${CURRENT_VERSION}" ]] ; then + info "Version '${GREEN}${UPSTREAM_VERSION}${NORMAL}' not changed, no update." + exit 0 + fi if [[ ! -f "${TARGET_JAR}" ]] ; then do_download fi - # if [[ "${UPSTREAM_VERSION}" == "${CURRENT_VERSION}" ]] ; then - # info "Version '${GREEN}${UPSTREAM_VERSION}${NORMAL}' not changed, no update." - # exit 0 - # fi check_sha1 fix_symlinks -- 2.39.5