move _MEM_TOTAL to common.sh and replace grep calls with rg

This commit is contained in:
Tobias Powalowski 2024-06-22 22:33:34 +02:00
parent 01676f0f3d
commit e7a7e893e9

View file

@ -92,7 +92,7 @@ _run_latest_install() {
_run_update_installer() {
cd /
if [[ "${_TTY}" == "tty1" ]]; then
if [[ "$()" -lt 2971000 ]]; then
if [[ "${_MEM_TOTAL}" -lt 2971000 ]]; then
_run_latest
else
# local image