From: Frank Brehm Date: Fri, 23 Apr 2021 10:53:38 +0000 (+0200) Subject: Output chenges X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=53f8d7fda14a14f8b5b63ed8aaac5fb00265e9de;p=pixelpark%2Fadmin-tools.git Output chenges --- diff --git a/bin/update-minecraft-server-jar b/bin/update-minecraft-server-jar index 85d9ba2..3db3ecd 100755 --- a/bin/update-minecraft-server-jar +++ b/bin/update-minecraft-server-jar @@ -145,6 +145,7 @@ check_preferences() { #------------------------------------------------------------------------------ detecting_cur_version() { + empty_line info "Trying to detect current version of Minecraft server." cd "${MC_BACKUP_DIR}" @@ -169,6 +170,7 @@ detecting_cur_version() { #------------------------------------------------------------------------------ get_upstream_info() { + empty_line info "Trying to get info about current upstream version." local upstream_manifest=$( curl -s "${VERSION_MANIFEST}" ) @@ -226,6 +228,7 @@ get_upstream_info() { #------------------------------------------------------------------------------ do_download() { + empty_line info "Downloading upstream server.jar => '${CYAN}${TARGET_JAR}${NORMAL}' ..." if [[ -f "${TARGET_JAR}" ]] ; then @@ -253,6 +256,7 @@ do_download() { #------------------------------------------------------------------------------ check_sha1() { + empty_line info "Checking SHA1 sum integrety of '${CYAN}${TARGET_JAR}${NORMAL}' ..." if [[ ! -f "${TARGET_JAR}" ]] ; then @@ -277,6 +281,7 @@ check_sha1() { #------------------------------------------------------------------------------ fix_symlinks() { + empty_line info "Checking symlink in '${CYAN}${MC_BACKUP_DIR}${NORMAL}' ..." local symlink_was_set="n" @@ -323,6 +328,9 @@ fix_symlinks() { #------------------------------------------------------------------------------ restart_service() { + empty_line + info "Checking for services to restart ..." + local -a services=() local service= local svc_status= @@ -333,6 +341,7 @@ restart_service() { done if [[ "${#services[*]}" == 0 ]] ; then + empty_line info "No services found to restart." return fi