hooks/pre-auto-gc: adjust power checking for newer OS X
commitc54c7b376d73d2b3780475b18a6039721019aaba
authorPanagiotis Astithas <pastith@gmail.com>
Thu, 11 Jun 2015 14:37:25 +0000 (11 17:37 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2015 22:33:39 +0000 (12 15:33 -0700)
tree0358d6f62b2b393561d3f8592c6d2b0273b247d0
parentfdf96a20acf96a6ac538df8113b2aafd6ed71d50
hooks/pre-auto-gc: adjust power checking for newer OS X

The output of "pmset -g batt" changed at some point from "Currently
drawing from 'AC Power'" to the slightly different "Now drawing from
'AC Power'". Starting the match from "drawing" makes the check work
in both old and new versions of OS X.

Signed-off-by: Panagiotis Astithas <pastith@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/pre-auto-gc-battery