Commit dee194ad authored by drebs's avatar drebs
Browse files

Fix memory check script so it works in Debian Bullseye

parent 48bb6edb
Pipeline #66029 passed with stages
in 14 minutes and 9 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