diff --git a/mc-install.sh b/mc-install.sh index 50e6d03..d81624e 100755 --- a/mc-install.sh +++ b/mc-install.sh @@ -82,9 +82,8 @@ elif [[ "$maxRam" =~ ("G"|"M") ]]; then printf "\n+ Allocating $maxRam as RAM maximum." echo "-Xmx$maxRam" >> 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 "-Xmx4G" >> 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 @@ -101,9 +100,8 @@ elif [[ "$minRam" =~ ("G"|"M") ]]; then printf "\n+ Allocating $minRam as RAM minimum." echo "-Xms$minRam" >> 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 "-Xms1G" >> user_jvm_args.txt elif [[ ! "$minRam" =~ ("G"|"MB") ]]; then printf "Allocating ${minRam}G as RAM maximum" echo "-Xms${minRam}G" >> user_jvm_args.txt