diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2014-01-10 02:50:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-01-10 02:50:53 +0000 |
commit | f77ef2edb097280d39b420655bcc465bfb73de3c (patch) | |
tree | 04286247ef05e980095dfd3c05ee467c3ddb3dda | |
parent | e695338e21080d3cbe20935db572e4cd0c7a620c (diff) | |
parent | 719757d6a8670660c3c7d2490457ff7064241422 (diff) | |
download | git-repo-f77ef2edb097280d39b420655bcc465bfb73de3c.tar.gz |
Merge "hooks/pre-auto-gc: fix AC detection on OSX Maverick"
-rwxr-xr-x | hooks/pre-auto-gc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-auto-gc b/hooks/pre-auto-gc index 360e5e1f..43403022 100755 --- a/hooks/pre-auto-gc +++ b/hooks/pre-auto-gc | |||
@@ -35,7 +35,7 @@ elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null | |||
35 | then | 35 | then |
36 | exit 0 | 36 | exit 0 |
37 | elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | | 37 | elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | |
38 | grep -q "Currently drawing from 'AC Power'" | 38 | grep -q "drawing from 'AC Power'" |
39 | then | 39 | then |
40 | exit 0 | 40 | exit 0 |
41 | elif test -d /sys/bus/acpi/drivers/battery && test 0 = \ | 41 | elif test -d /sys/bus/acpi/drivers/battery && test 0 = \ |