Fixed missing group option and variable
This commit is contained in:
parent
7dba2e7514
commit
4338f51729
@ -49,7 +49,7 @@ minutes=$(echo "scale=2; $hours * 60" | bc -l)
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user