Explorar o código

Missing quotes

UltimateByte %!s(int64=10) %!d(string=hai) anos
pai
achega
fc99a2cf30
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lgsm/functions/check_system_requirements.sh

+ 2 - 2
lgsm/functions/check_system_requirements.sh

@@ -8,13 +8,13 @@
 mbphysmem=$(free -m | awk '/Mem:/ {print $2}')
 
 # RAM requirement in MegaBytes for each game or engine
-if [ "${gamename} == "Rust" ]; then
+if [ "${gamename}" == "Rust" ]; then
   ramrequirement="4000"
 fi
 
 # If the game or engine has a minimum RAM Requirement, compare it to system's available RAM
 if [ -n "${ramrequirement}" ]; then
-  if [ "${mbphysmem}" -lt "${ramrequirement} ]; then
+  if [ "${mbphysmem}" -lt "${ramrequirement}"" ]; then
     # Warn the user
     fn_print_warn "Insufficient physical RAM: ${mbphysmem}MB available for ${ramrequirement}MB required."
     sleep 2