fixed unbound variable and removed exits

This commit is contained in:
CerberusV1
2024-10-15 13:11:33 +02:00
parent 476bff6e4b
commit 86761bd0ef

View File

@@ -41,16 +41,15 @@ while true; do
echo "Before starting the server, please accept the EULA" echo "Before starting the server, please accept the EULA"
else else
echo "Something went wrong, please recreate the EULA" echo "Something went wrong, please recreate the EULA"
exit 1
fi fi
else else
echo "Before starting the server, please accept the EULA" echo "Before starting the server, please accept the EULA"
exit 2
fi fi
read -p "Press Enter to continue..." read -p "Press Enter to continue..."
break break
;; ;;
"Set EULA") "Set EULA")
current_date=$(date)
clear clear
echo " Setting EULA " echo " Setting EULA "
echo "------------------------------------------------------------" echo "------------------------------------------------------------"