From 93db40176b86ad9a5df13173295268623f843535 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 8 Jun 2023 13:52:19 -0400 Subject: [PATCH] Only perform network availability check for update check if update checks are enabled --- retrodeck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index 970862b7..763229c5 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -170,8 +170,10 @@ desktop_mode_warning low_space_warning # Check if there is a new version of RetroDECK available, if update_check=true in retrodeck.cfg and there is network connectivity available. -if [[ $(check_network_connectivity) == "true" ]] && [[ $update_check == "true" ]]; then - check_for_version_update +if [[ $update_check == "true" ]]; then + if [[ $(check_network_connectivity) == "true" ]]; then + check_for_version_update + fi fi # Normal Startup