Do not remove files

This commit is contained in:
Santiago Lo Coco 2024-04-10 11:28:44 +02:00
parent d058087729
commit b67dc54996
1 changed files with 1 additions and 4 deletions

View File

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