Huh.  Sho' nuff.  I have a similar fragment:

if which on_ac_power >/dev/null 2>&1; then
    AC_POWER=0
    on_ac_power >/dev/null 2>&1 || AC_POWER=$?
    if [ "$AC_POWER" -eq 1 ]; then
        echo >&2 "On battery power, not running today."
        exit 1
    fi
fi

At first glance and trial, the logic appears to work too.  I wonder
what's awry on my machine?  I'll have to suss that out later.  Good
deal.

-- 
updatedb should be weekly, not daily
https://bugs.launchpad.net/bugs/271272
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to