OSDN Git Service

temporary fix battery status error
[instantos/instantOS.git] / 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