Commit f96f6b5c authored by drebs's avatar drebs
Browse files

Fix memory check script so it works in Debian Bullseye

parent 85517f30
Pipeline #66028 passed with stages
in 13 minutes and 51 seconds
......@@ -103,7 +103,7 @@ while getopts ":c:hlvVw:" opt; do
done
#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