This fixes a problem where uninstall would not clear the current crontab file, leading to duplicate entries when re-installing via the installer.
This commit is contained in:
Ace 2021-03-16 21:37:23 +01:00 committed by GitHub
parent 39815d9501
commit 7ace17464f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,8 @@ if [ "$option" = 1 ] || [ "$option" = 3 ]; then
pip3 uninstall Inkycal -y
# Remove crontab file
echo -e "\e[1;36m"Replacing current crontab"\e[0m"
(crontab -l ; echo "")| crontab -
echo -e "\e[1;36m"Reverting crontab file"\e[0m"
crontab -r
echo -e "\e[1;36m"Uninstall complete."\e[0m"
fi