On Fri, Sep 26, 2008 at 12:20 AM, Miklos Vajna <vmiklos@xxxxxxxxxxxxxx> wrote:> 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'>> ?I was trying to handle pmset reporting anything other than BatteryPower (currently it reports either Battery, UPS, or AC), but thinkingabout it, if you're on UPS, you probably don't want git gc eating intoyour remaining power...I'll post an updated version on Monday.˙ôčş{.nÇ+?ˇ?Ž??+%?Ë˙ąéÝśĽ?w˙ş{.nÇ+?ˇ ?ßâ?Ř^n?rĄöŚzË?ëh?¨čÚ&ŁűŕzżäzšŢ?ú+?Ę+zfŁ˘ˇh??§~??Űi˙˙ď?ę˙?ęçz_čŽćj:+v?¨ţ)ߣřm