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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux