Skip to content

Commit

Permalink
fixed indentation and redirection style
Browse files Browse the repository at this point in the history
  • Loading branch information
codesensei-courses committed Feb 4, 2024
1 parent c9ed0cb commit 5d7a1eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions i3-battery-popup
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ main (){
MESSAGE="${MESSAGE:-Warning: Battery is getting low}"
SLEEP_TIME="${SLEEP_TIME:-5m}"
# Note: BATTERIES is an array
if ls /sys/class/power_supply/BAT*/uevent 1> /dev/null 2>&1; then
BATTERIES=( /sys/class/power_supply/BAT*/uevent )
elif ls /sys/class/power_supply/CMB*/uevent 1> /dev/null 2>&1; then
if ls /sys/class/power_supply/BAT*/uevent > /dev/null 2>&1; then
BATTERIES=( /sys/class/power_supply/BAT*/uevent )
elif ls /sys/class/power_supply/CMB*/uevent > /dev/null 2>&1; then
BATTERIES=( /sys/class/power_supply/CMB*/uevent )
else
echo "No batteries found"
Expand Down

0 comments on commit 5d7a1eb

Please sign in to comment.