Fix more and more bugs

This commit is contained in:
Santiago Lo Coco 2024-04-10 11:56:11 +02:00
parent b67dc54996
commit 324c4ed063
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,7 @@ EOF
} }
write_cache() { write_cache() {
echo "$1" > "$TMP_FILE" [[ -n "$NO_CACHE" ]] || echo "$1" > "$TMP_FILE"
} }
read_cache() { read_cache() {

View File

@ -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>