Skip to content

Commit e972ec1

Browse files
committed
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.
1 parent ce9eb50 commit e972ec1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint-user.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ echo -e ""
4646
echo -e "Starting Update Checks"
4747
echo -e "================================="
4848
nohup watch -n "${UPDATE_CHECK}" ./"${GAMESERVER}" update > /dev/null 2>&1 &
49-
echo -e "update will check every ${UPDATE_CHECK} minutes"
49+
minutes=$((UPDATE_CHECK / 60))
50+
echo -e "update will check every ${minutes} minutes"
5051

5152
# Update game server
5253
if [ -z "${install}" ]; then

0 commit comments

Comments
 (0)