Fixed missing group option and variable

This commit is contained in:
Scott C. MacCallum 2024-10-23 22:23:35 -04:00
parent 4338f51729
commit 11c088c617

View File

@ -48,7 +48,7 @@ minutes=$(echo "scale=2; $hours * 60" | bc)
minimum=
if (( $(echo "$minutes < $minimum" | bc -l) )); then
echo "Suspending the computer! Battery charge is needed!" | wall
echo "Suspending the computer! Battery charge is needed!" | wall -g $group
sleep 3
systemctl suspend
fi