Просмотр исходного кода

fix the fix for #1143 (close double quote)

UltimateByte 9 лет назад
Родитель
Сommit
bd77c9fa68
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lgsm/functions/info_distro.sh

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -73,7 +73,7 @@ physmemtotalmb=$(free -m | awk '/Mem:/ {print $2}')
 physmemused=$(free ${humanreadable} | awk '/Mem:/ {print $3}')
 physmemfree=$(free ${humanreadable} | awk '/Mem:/ {print $4}')
 physmemcached=$(free ${humanreadable} | awk '/cache:/ {print $4}')
-if [ -z "${physmemcached} ]; then
+if [ -z "${physmemcached}" ]; then
 	physmemcached=$(free ${humanreadable} | awk '/Mem:/ {print $5}')
 fi
 swaptotal=$(free ${humanreadable} | awk '/Swap:/ {print $2}')