Commit 2f4cb3ec authored by drebs's avatar drebs
Browse files

Fix memory check script so it works in Debian Bullseye

parent fae8aee5
Pipeline #66027 passed with stages
in 14 minutes and 12 seconds
......@@ -103,7 +103,7 @@ while getopts ":c:hlvVw:" opt; do
#Real check begins here
FREE_OUTPUT=`free -b | grep Mem:`
FREE_OUTPUT=`free -b | grep ^Mem`
TOTAL_MEM=`echo $FREE_OUTPUT |awk '{print $2}'`
FREE_MEM=`echo $FREE_OUTPUT |awk '{print $4}'`
if [ `free -V | grep procps-ng | wc -l` -eq 1 ]; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment