Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] Add OS X support to the pre-auto-gc example hook

From: Jonathan del Strother <hidden>
Date: 2016-06-15 22:45:24

On Fri, Sep 26, 2008 at 12:20 AM, Miklos Vajna [off-list ref] wrote:
On Tue, Sep 23, 2008 at 11:43:23PM +0100, Jonathan del Strother [off-list ref] wrote:
quoted
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'

?
I was trying to handle pmset reporting anything other than Battery
Power (currently it reports either Battery, UPS, or AC), but thinking
about it, if you're on UPS, you probably don't want git gc eating into
your remaining power...
I'll post an updated version on Monday.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help