From b62a91cf2c601d149da4e00a06e9ab8e2415a0e8 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 2 Jun 2024 20:38:30 +0300 Subject: [PATCH] test --- Quilibrium.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Quilibrium.sh b/Quilibrium.sh index 9f1d325..dbef7e1 100644 --- a/Quilibrium.sh +++ b/Quilibrium.sh @@ -1,4 +1,26 @@ #!/bin/bash + echo "Welcome! Please choose an option:" +# Menu +while true; do + echo "1) Install Prerequisites" + echo "2) Install Node" + echo "3) Configure grpcurl" + echo "4) Check Visibility" + echo "5) Node Info" + echo "6) Exit" + + read -p "Enter your choice: " choice + + case $choice in + 1) install_prerequisites ;; + 2) install_node ;; + 3) configure_grpcurl ;; + 4) check_visibility ;; + 5) node_info ;; + 6) break ;; + *) echo "Invalid option, please try again." ;; + esac +done # Function for each menu option install_prerequisites() { @@ -61,25 +83,3 @@ node_info() { # Your code here } -# Menu -while true; do - echo "Welcome! Please choose an option:" - echo "1) Install Prerequisites" - echo "2) Install Node" - echo "3) Configure grpcurl" - echo "4) Check Visibility" - echo "5) Node Info" - echo "6) Exit" - - read -p "Enter your choice: " choice - - case $choice in - 1) install_prerequisites ;; - 2) install_node ;; - 3) configure_grpcurl ;; - 4) check_visibility ;; - 5) node_info ;; - 6) break ;; - *) echo "Invalid option, please try again." ;; - esac -done \ No newline at end of file