Do not remove files
This commit is contained in:
parent
d058087729
commit
b67dc54996
5
cbattery
5
cbattery
|
@ -114,10 +114,7 @@ runScript() {
|
|||
enable_charging
|
||||
disable_discharging
|
||||
launch_daemon=/Library/LaunchDaemons/cbattery.plist
|
||||
if [[ -f "$launch_daemon" ]]; then
|
||||
sudo launchctl unload -w "$launch_daemon"
|
||||
sudo rm "$launch_daemon"
|
||||
fi
|
||||
[[ -f "$launch_daemon" ]] && sudo launchctl unload -w "$launch_daemon"
|
||||
;;
|
||||
"charging")
|
||||
echo "Setting $action to $setting"
|
||||
|
|
Loading…
Reference in New Issue