mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
bin: shell check power-monitor
This commit is contained in:
parent
47a93b0506
commit
fe22aa56af
1 changed files with 4 additions and 2 deletions
|
|
@ -19,7 +19,9 @@ get_battery_path() {
|
|||
echo "$bat_path"
|
||||
}
|
||||
|
||||
readonly BAT="$(get_battery_path)"
|
||||
readonly BAT
|
||||
BAT="$(get_battery_path)"
|
||||
|
||||
readonly BAT_STATUS="$BAT/status"
|
||||
readonly BAT_CAP="$BAT/capacity"
|
||||
readonly LOW_BAT_PERCENT=30
|
||||
|
|
@ -40,7 +42,7 @@ if ! command -v powerprofilesctl >/dev/null 2>&1; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -n "''${STARTUP_WAIT:-}" ]]; then
|
||||
if [[ -n "${STARTUP_WAIT:-}" ]]; then
|
||||
sleep "$STARTUP_WAIT"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue