Refactor menu.sh
This commit is contained in:
4
menu.sh
4
menu.sh
@ -53,7 +53,6 @@ main_menu() {
|
|||||||
clear
|
clear
|
||||||
local choice
|
local choice
|
||||||
while true; do
|
while true; do
|
||||||
define_colors
|
|
||||||
get_system_info
|
get_system_info
|
||||||
display_main_menu
|
display_main_menu
|
||||||
read -r choice
|
read -r choice
|
||||||
@ -96,7 +95,6 @@ hysteria2_menu() {
|
|||||||
clear
|
clear
|
||||||
local choice
|
local choice
|
||||||
while true; do
|
while true; do
|
||||||
define_colors
|
|
||||||
get_system_info
|
get_system_info
|
||||||
display_hysteria2_menu
|
display_hysteria2_menu
|
||||||
read -r choice
|
read -r choice
|
||||||
@ -120,7 +118,6 @@ advance_menu() {
|
|||||||
clear
|
clear
|
||||||
local choice
|
local choice
|
||||||
while true; do
|
while true; do
|
||||||
define_colors
|
|
||||||
display_advance_menu
|
display_advance_menu
|
||||||
read -r choice
|
read -r choice
|
||||||
case $choice in
|
case $choice in
|
||||||
@ -162,5 +159,6 @@ main() {
|
|||||||
main_menu
|
main_menu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define_colors
|
||||||
# Run the main function
|
# Run the main function
|
||||||
main
|
main
|
||||||
|
|||||||
Reference in New Issue
Block a user