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