From e8ef2171c6902e60bbdd60cd0d8f405c4f992f8e Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Tue, 8 Dec 2020 17:16:51 +0100 Subject: [PATCH] Return 0 on exit This prevents cron from printing warnings in log when a condition is false. --- batterycheck | 1 + 1 file changed, 1 insertion(+) diff --git a/batterycheck b/batterycheck index ae34ee5..46f0d0f 100755 --- a/batterycheck +++ b/batterycheck @@ -9,4 +9,5 @@ acpi_status=$(echo "$acpi" | awk -F ': |,' {'print $2'}) [ "$acpi_value" -lt "$limit" ] && export DISPLAY=:0.0 && notify-send -u critical "Battery charge at $acpi_value%" +exit 0