Fix more and more bugs
This commit is contained in:
parent
b67dc54996
commit
324c4ed063
2
cbattery
2
cbattery
|
@ -19,7 +19,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
write_cache() {
|
write_cache() {
|
||||||
echo "$1" > "$TMP_FILE"
|
[[ -n "$NO_CACHE" ]] || echo "$1" > "$TMP_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
read_cache() {
|
read_cache() {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>/opt/homebrew/bin/cbattery</string>
|
<string>/usr/local/bin/cbattery</string>
|
||||||
<string>charging</string>
|
<string>charging</string>
|
||||||
<string>off</string>
|
<string>off</string>
|
||||||
</array>
|
</array>
|
||||||
|
@ -20,5 +20,10 @@
|
||||||
<key>StandardErrorPath</key>
|
<key>StandardErrorPath</key>
|
||||||
<string>/tmp/cbattery.stderr</string>
|
<string>/tmp/cbattery.stderr</string>
|
||||||
|
|
||||||
|
<key>EnvironmentVariables</key>
|
||||||
|
<dict>
|
||||||
|
<key>NO_CACHE</key>
|
||||||
|
<string>true</string>
|
||||||
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in New Issue