bin: shell check power-monitor

This commit is contained in:
Olexandr Smirnov 2025-07-30 18:57:50 +03:00
parent 47a93b0506
commit fe22aa56af
No known key found for this signature in database

View file

@ -19,7 +19,9 @@ get_battery_path() {
echo "$bat_path" echo "$bat_path"
} }
readonly BAT="$(get_battery_path)" readonly BAT
BAT="$(get_battery_path)"
readonly BAT_STATUS="$BAT/status" readonly BAT_STATUS="$BAT/status"
readonly BAT_CAP="$BAT/capacity" readonly BAT_CAP="$BAT/capacity"
readonly LOW_BAT_PERCENT=30 readonly LOW_BAT_PERCENT=30
@ -40,7 +42,7 @@ if ! command -v powerprofilesctl >/dev/null 2>&1; then
exit 1 exit 1
fi fi
if [[ -n "''${STARTUP_WAIT:-}" ]]; then if [[ -n "${STARTUP_WAIT:-}" ]]; then
sleep "$STARTUP_WAIT" sleep "$STARTUP_WAIT"
fi fi