From 164b503ed95348484e3529ca65c2b9e648485574 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 23 Apr 2021 12:49:33 +0200 Subject: [PATCH] Don't sleep in simulation mode --- bin/update-minecraft-server-jar | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/update-minecraft-server-jar b/bin/update-minecraft-server-jar index 450c5a9..85d9ba2 100755 --- a/bin/update-minecraft-server-jar +++ b/bin/update-minecraft-server-jar @@ -350,7 +350,10 @@ restart_service() { MAIL_BODY+="$( my_date ): Restarted service '${service}'.\n" done - sleep 15 + if [[ "${SIMULATE}" != "y" ]] ; then + debug "Sleeping for 15 seconds ..." + sleep 15 + fi for service in "${ervices[@]}" ; do empty_line -- 2.39.5