From e972ec187a98460c608895722b901c9424d09d2f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 14 Sep 2023 15:48:26 +0100 Subject: [PATCH] refactor: improve update check message The code has been refactored to improve the update check message. Instead of displaying the update check interval in seconds, it now displays it in minutes for better readability. --- entrypoint-user.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint-user.sh b/entrypoint-user.sh index 37d913d..7c88029 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -46,7 +46,8 @@ echo -e "" echo -e "Starting Update Checks" echo -e "=================================" nohup watch -n "${UPDATE_CHECK}" ./"${GAMESERVER}" update > /dev/null 2>&1 & -echo -e "update will check every ${UPDATE_CHECK} minutes" +minutes=$((UPDATE_CHECK / 60)) +echo -e "update will check every ${minutes} minutes" # Update game server if [ -z "${install}" ]; then