maybe looks better this way

This commit is contained in:
CerberusV1
2024-10-16 16:33:14 +02:00
parent 2a91755153
commit 81bf695a45

View File

@@ -117,7 +117,6 @@ while true; do
clear clear
echo " Allocate RAM " echo " Allocate RAM "
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
clear
presets=("1 GB" "2 GB" "4 GB" "8 GB" "16 GB" "Check") presets=("1 GB" "2 GB" "4 GB" "8 GB" "16 GB" "Check")
select opt in "${presets[@]}"; do select opt in "${presets[@]}"; do
case $opt in case $opt in
@@ -125,43 +124,38 @@ while true; do
echo "Allocate 1GB of RAM" echo "Allocate 1GB of RAM"
echo "-Xms512M" > "${server}/user_jvm_args.txt" echo "-Xms512M" > "${server}/user_jvm_args.txt"
echo "-Xmx1G" >> "${server}/user_jvm_args.txt" echo "-Xmx1G" >> "${server}/user_jvm_args.txt"
break
;; ;;
"2 GB") "2 GB")
echo "Allocate 2GB of RAM" echo "Allocate 2GB of RAM"
echo "-Xms1G" > "${server}/user_jvm_args.txt" echo "-Xms1G" > "${server}/user_jvm_args.txt"
echo "-Xmx2G" >> "${server}/user_jvm_args.txt" echo "-Xmx2G" >> "${server}/user_jvm_args.txt"
break
;; ;;
"4 GB") "4 GB")
echo "Allocate 4GB of RAM" echo "Allocate 4GB of RAM"
echo "-Xms2G" > "${server}/user_jvm_args.txt" echo "-Xms2G" > "${server}/user_jvm_args.txt"
echo "-Xmx4G" >> "${server}/user_jvm_args.txt" echo "-Xmx4G" >> "${server}/user_jvm_args.txt"
break
;; ;;
"8 GB") "8 GB")
echo "Allocate 8GB of RAM" echo "Allocate 8GB of RAM"
echo "-Xms4G" > "${server}/user_jvm_args.txt" echo "-Xms4G" > "${server}/user_jvm_args.txt"
echo "-Xmx8G" >> "${server}/user_jvm_args.txt" echo "-Xmx8G" >> "${server}/user_jvm_args.txt"
break
;; ;;
"16 GB") "16 GB")
echo "Allocate 16GB of RAM" echo "Allocate 16GB of RAM"
echo "-Xms8G" > "${server}/user_jvm_args.txt" echo "-Xms8G" > "${server}/user_jvm_args.txt"
echo "-Xmx16G" >> "${server}/user_jvm_args.txt" echo "-Xmx16G" >> "${server}/user_jvm_args.txt"
break
;; ;;
"Check") "Check")
cat "${server}/user_jvm_args.txt" cat "${server}/user_jvm_args.txt"
read -p "Enter"
break break
;; ;;
*) *)
echo "invalid input" echo "invalid input"
break
;; ;;
esac esac
done done
read -p "Press Enter to continue..." read -p "Press Enter to return to main menu"
break break
;; ;;
"Install Mods") "Install Mods")