From 3487adf34cdd4864ccccc8fc2eaf0b5342ec317e Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 23 Apr 2025 21:22:03 +0000 Subject: [PATCH] exit save_result if not in online mode --- wordle | 1 + 1 file changed, 1 insertion(+) diff --git a/wordle b/wordle index 25a09b9..475c8fc 100755 --- a/wordle +++ b/wordle @@ -395,6 +395,7 @@ function save_game() { } function save_result() { + [[ "${ONLINE}" == 0 ]] && return 0 [[ "${ONLINE}" == 1 ]] && update_stats if [[ "${ONLINE}" == 1 ]] && [[ "${DAILY_DONE}" != 1 ]]; then render_board > "${RESULT_FILE}" -- 2.43.0