diff --git a/mc-install.sh b/mc-install.sh index 7758be2..35863c5 100755 --- a/mc-install.sh +++ b/mc-install.sh @@ -92,14 +92,14 @@ if [[ "$minRam" > "$maxRam" ]]; then $maxRam="Error" elif [[ "$maxRam" =~ ("G"|"M") ]]; then 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 $maxRam="4G" 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 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 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" @@ -111,14 +111,14 @@ if [[ "$minRam" > "$maxRam" ]]; then echo "-Xms?G # in place of ? put number of RAM you want to se ass minimum" elif [[ "$minRam" =~ ("G"|"M") ]]; then 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 $minRam="1G" 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 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 pritnf "\n!!! Sorry I have no idea what are you trying to do :/ Manual intervention will be needed at the end \n" $minRam="Error"