Skip to content

Commit 41e42e6

Browse files
committed
Fix menu.sh to work offline with local backup
Remove network_ok check in menu.sh to allow running offline. The run_script function will automatically: 1. Try to download from GitHub (if online) 2. Fall back to local backup (if offline or rate limited) This allows users to run menu.sh for configuration changes even when completely offline, as requested in issue #2771.
1 parent a0dfb7c commit 41e42e6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

menu/menu.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ root_check
1919
mkdir -p "$SCRIPTS"
2020
print_text_in_color "$ICyan" "Running the main menu script..."
2121

22-
if network_ok
23-
then
24-
# Delete, download, run
25-
run_script MENU main_menu
26-
fi
22+
# Try to run main_menu - will use local backup if GitHub unavailable
23+
run_script MENU main_menu
2724

2825
exit

0 commit comments

Comments
 (0)