From: Miklos Vajna Date: Thu, 25 Sep 2008 23:20:08 GMT Subject: Re: [PATCH] Add OS X support to the pre-auto-gc example hook Message-ID: <20080925232008.GO23137@genesis.frugalware.org> In-Reply-To: <1222209803-4401-1-git-send-email-jon.delStrother@bestbefore.tv> On Tue, Sep 23, 2008 at 11:43:23PM +0100, Jonathan del Strother 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' ?