fix variables vs functions

This commit is contained in:
Peter Hoeg 2011-09-29 22:42:21 +08:00
commit 4824160840
2 changed files with 11 additions and 6 deletions

View file

@ -1,4 +1,4 @@
if [[ $(acpi | grep -c '^Battery.*Discharging') -gt 0 ]] ; then
if [[ $(acpi 2&>/dev/null | grep -c '^Battery.*Discharging') -gt 0 ]] ; then
function battery_pct_remaining() { echo "$(acpi | cut -f2 -d ',' | tr -cd '[:digit:]')" }
function battery_time_remaining() { echo $(acpi | cut -f3 -d ',') }
function battery_pct_prompt() {