OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
temporary fix battery status error
[instantos/instantOS.git]
/
status.sh
diff --git
a/status.sh
b/status.sh
index
87915da
..
dd86376
100755
(executable)
--- a/
status.sh
+++ b/
status.sh
@@
-34,7
+34,7
@@
while :; do
# battery indicator on laptop
if [ -n "$ISLAPTOP" ]; then
- TMPBAT=$(acpi)
+ TMPBAT=$(acpi
| head -1
)
if [[ $TMPBAT =~ "Charging" ]]; then
BATTERY="^c$GREEN^ B"$(egrep -o '[0-9]*%' <<<"$TMPBAT")" "
else