On Tue, Sep 23, 2008 at 11:43:23PM +0100, Jonathan del Strother <jon.delStrother@xxxxxxxxxxxxx> wrote: > Shell scripting isn't my fortĂŠ, suggestions for improvements would be > welcome. > > +elif test -x /usr/bin/pmset && (! /usr/bin/pmset -g batt | grep -q 'Battery Power' ) What about +elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | grep -q 'AC Power' ?
Attachment:
pgplFIZElSlBS.pgp
Description: PGP signature