Skip to content

Commit

Permalink
Merge pull request #167 from landabaso/main
Browse files Browse the repository at this point in the history
Remove the visudo file when uninstalling
  • Loading branch information
actuallymentor authored Aug 20, 2023
2 parents 4865437 + f155695 commit 2931103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ if [[ "$action" == "uninstall" ]]; then
echo "Press any key to continue"
read
fi
enable_charging
enable_charging
disable_discharging
battery remove_daemon
sudo rm -v "$binfolder/smc" "$binfolder/battery"
sudo rm -v "$binfolder/smc" "$binfolder/battery" $visudo_file
sudo rm -v -r "$configfolder"
pkill -f "/usr/local/bin/battery.*"
exit 0
exit 0
fi

# Charging on/off controller
Expand Down

0 comments on commit 2931103

Please sign in to comment.