i hope it will work now

This commit is contained in:
ggodot 2026-01-25 23:03:15 +01:00
parent 4431f0db5f
commit c339170ece

View File

@ -92,14 +92,14 @@ if [[ "$minRam" > "$maxRam" ]]; then
$maxRam="Error" $maxRam="Error"
elif [[ "$maxRam" =~ ("G"|"M") ]]; then elif [[ "$maxRam" =~ ("G"|"M") ]]; then
printf "\n+ Allocating $maxRam as RAM maximum." printf "\n+ Allocating $maxRam as RAM maximum."
echo "-Xmx$maxRam" >> user_jvm_args.txt echo "-Xmx$maxRam" >> /opt/minecraft/user_jvm_args.txt
elif [[ -z $maxRam ]]; then elif [[ -z $maxRam ]]; then
$maxRam="4G" $maxRam="4G"
printf "\n+ Allocating $MaxRam as RAM maximum" printf "\n+ Allocating $MaxRam as RAM maximum"
echo "-Xmx$maxRam" >> user_jvm_args.txt echo "-Xmx$maxRam" >> /opt/minecraft/user_jvm_args.txt
elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then elif [[ ! "$maxRam" =~ ("G"|"MB") ]]; then
printf "\n+ Allocating ${maxRam}G as RAM maximum" printf "\n+ Allocating ${maxRam}G as RAM maximum"
echo "-Xmx${maxRam}G" >> user_jvm_args.txt echo "-Xmx${maxRam}G" >> /opt/minecraft/user_jvm_args.txt
else else
pritnf "\n \n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n" pritnf "\n \n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n"
$maxRam="Error" $maxRam="Error"
@ -111,14 +111,14 @@ if [[ "$minRam" > "$maxRam" ]]; then
echo "-Xms?G # in place of ? put number of RAM you want to se ass minimum" echo "-Xms?G # in place of ? put number of RAM you want to se ass minimum"
elif [[ "$minRam" =~ ("G"|"M") ]]; then elif [[ "$minRam" =~ ("G"|"M") ]]; then
printf "\n+ Allocating $minRam as RAM minimum." printf "\n+ Allocating $minRam as RAM minimum."
echo "-Xms$minRam" >> user_jvm_args.txt echo "-Xms$minRam" >> /opt/minecraft/user_jvm_args.txt
elif [[ -z $minRam ]]; then elif [[ -z $minRam ]]; then
$minRam="1G" $minRam="1G"
printf "\n+ Allocating $minRam as RAM minimum" printf "\n+ Allocating $minRam as RAM minimum"
echo "-Xms$minRam" >> user_jvm_args.txt echo "-Xms$minRam" >> /opt/minecraft/user_jvm_args.txt
elif [[ ! "$minRam" =~ ("G"|"MB") ]]; then elif [[ ! "$minRam" =~ ("G"|"MB") ]]; then
printf "Allocating ${minRam}G as RAM maximum" printf "Allocating ${minRam}G as RAM maximum"
echo "-Xms${minRam}G" >> user_jvm_args.txt echo "-Xms${minRam}G" >> /opt/minecraft/user_jvm_args.txt
else else
pritnf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n" pritnf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n"
$minRam="Error" $minRam="Error"