Skip to content

Commit 3072ec3

Browse files
committed
Merge branch 'pa/auto-gc-mac-osx'
Recent Mac OS X updates breaks the logic to detect that the machine is on the AC power in the sample pre-auto-gc script. * pa/auto-gc-mac-osx: hooks/pre-auto-gc: adjust power checking for newer OS X
2 parents b3689ce + c54c7b3 commit 3072ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/hooks/pre-auto-gc-battery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null
3333
then
3434
exit 0
3535
elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt |
36-
grep -q "Currently drawing from 'AC Power'"
36+
grep -q "drawing from 'AC Power'"
3737
then
3838
exit 0
3939
fi

0 commit comments

Comments
 (0)