all repos

dotfiles @ fe22aa5

i use rach linux btw
1 files changed, 4 insertions(+), 2 deletions(-)
bin: shell check power-monitor
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-07-30 18:57:50 +0300
Parent: 47a93b0
M bin/power-monitor.sh
···
        19
        19
           echo "$bat_path"

      
        20
        20
         }

      
        21
        21
         

      
        22
        
        -readonly BAT="$(get_battery_path)"

      
        
        22
        +readonly BAT

      
        
        23
        +BAT="$(get_battery_path)"

      
        
        24
        +

      
        23
        25
         readonly BAT_STATUS="$BAT/status"

      
        24
        26
         readonly BAT_CAP="$BAT/capacity"

      
        25
        27
         readonly LOW_BAT_PERCENT=30

      ···
        40
        42
           exit 1

      
        41
        43
         fi

      
        42
        44
         

      
        43
        
        -if [[ -n "''${STARTUP_WAIT:-}" ]]; then

      
        
        45
        +if [[ -n "${STARTUP_WAIT:-}" ]]; then

      
        44
        46
           sleep "$STARTUP_WAIT"

      
        45
        47
         fi

      
        46
        48