Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

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 ...@@ -103,7 +103,7 @@ while getopts ":c:hlvVw:" opt; do
done done
#Real check begins here #Real check begins here
FREE_OUTPUT=`free -b | grep Mem:` FREE_OUTPUT=`free -b | grep ^Mem`
TOTAL_MEM=`echo $FREE_OUTPUT |awk '{print $2}'` TOTAL_MEM=`echo $FREE_OUTPUT |awk '{print $2}'`
FREE_MEM=`echo $FREE_OUTPUT |awk '{print $4}'` FREE_MEM=`echo $FREE_OUTPUT |awk '{print $4}'`
if [ `free -V | grep procps-ng | wc -l` -eq 1 ]; then 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