Fix stray percent sign on NetBSD battery
This commit is contained in:
parent
8aa2c0168c
commit
33c3a21f37
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1849,7 +1849,7 @@ getbattery () {
|
||||||
|
|
||||||
"NetBSD"*)
|
"NetBSD"*)
|
||||||
battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}')
|
battery=$(envstat | awk '\\(|\\)' '/charge:/ {print $2}')
|
||||||
battery="${battery/\.*}%"
|
battery="${battery:+/\.*}%"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue