Skip to content

Commit

Permalink
Merge pull request #281 from mamantoha/show-battery-percent-sign-on-l…
Browse files Browse the repository at this point in the history
…inux

fix show battery percent sign on linux
  • Loading branch information
ethancedwards8 authored Aug 22, 2024
2 parents 40edba4 + aaabb1d commit b59724e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ battery_percent()
case $(uname -s) in
Linux)
percent=$(linux_acpi percent)
[ -n "$percent" ] && echo " $percent"
[ -n "$percent" ] && echo "$percent%"
;;

Darwin)
Expand Down Expand Up @@ -175,4 +175,3 @@ main()

#run main driver program
main

0 comments on commit b59724e

Please sign in to comment.