mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
simplify check as per review
This commit is contained in:
2
neofetch
2
neofetch
@@ -2261,7 +2261,7 @@ get_battery() {
|
|||||||
"Windows")
|
"Windows")
|
||||||
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
|
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)"
|
||||||
battery="${battery/EstimatedChargeRemaining}"
|
battery="${battery/EstimatedChargeRemaining}"
|
||||||
[[ "$(trim "$battery")" ]] && battery="$(trim "$battery")%"
|
batttery=“$(trim “$battery”)%”
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
|
|||||||
Reference in New Issue
Block a user