From d2c6ad9984eb798b7ef51784812c5eefdd2432ec Mon Sep 17 00:00:00 2001 From: CerberusV1 Date: Wed, 16 Oct 2024 14:43:13 +0200 Subject: [PATCH] fixed y/n layer for starting the server --- server_manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_manager.sh b/server_manager.sh index 61b11aa..9265ade 100644 --- a/server_manager.sh +++ b/server_manager.sh @@ -38,7 +38,7 @@ while true; do echo " Launch Menu" echo "------------------------------------------------------------" read -p "Do you want to start the server? [y/n] " start_answer # Promting before actually starting the server - if [[ ${eula_answer} == "y" ]]; then + if [[ ${start_answer} == "y" ]]; then if [[ -e "${server}/eula.txt" ]]; then # Checks if the EULA file exists condition=$(cat "${server}/eula.txt" | grep -c "eula=true") # Sets the condition, in this case counting how many lines with eula=true exist in the EULA file if [[ ${condition} -eq 1 ]]; then # If EULA is accepted, start the server @@ -53,7 +53,7 @@ while true; do else echo "Before starting the server, please accept the EULA" fi - elif [[ ${eula_answer} == "n" ]]; then + elif [[ ${start_answer} == "n" ]]; then break else echo "Invalid input"