From 4338f517294d31c1ea5404308bbcc101a6dbd301 Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Wed, 23 Oct 2024 22:22:19 -0400 Subject: [PATCH] Fixed missing group option and variable --- battery-monitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battery-monitor.sh b/battery-monitor.sh index bd2b2f6..cfb4aa1 100755 --- a/battery-monitor.sh +++ b/battery-monitor.sh @@ -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