diff --git a/misc/build.func b/misc/build.func index 80120011..87103ba9 100644 --- a/misc/build.func +++ b/misc/build.func @@ -601,7 +601,7 @@ install_script() { check_container_resources() { # Check actual RAM & Cores - current_ram=$(free -m | awk '/^Mem:/{print $2}') + current_ram=$(free -m | awk 'NR==2{print $2}') current_cpu=$(nproc) # Check whether the current RAM is less than the required RAM or the CPU cores are less than required