From bf4516895d8d1ad03215fdb15c6e8059e05c1563 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Thu, 19 May 2022 15:32:59 +0000 Subject: [PATCH] Update install.sh --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a72418c..6e380ab 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,6 @@ # Figure out how much RAM the system has an set a variable -ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'}) +# ramTotal=$(free -h | awk '/^Mem:/{print $2}'| awk -FG {'print$1'}) +ramTotal=$(free | awk '/^Mem:/{print $2 / 1024 / 1024}' | awk -F. {'print$1'}) # Detect and list the drives. lsblk -f