From 7ace17464ffd1c1767d3ee18a40373e403808ee6 Mon Sep 17 00:00:00 2001 From: Ace Date: Tue, 16 Mar 2021 21:37:23 +0100 Subject: [PATCH] Fix for #180 This fixes a problem where uninstall would not clear the current crontab file, leading to duplicate entries when re-installing via the installer. --- installer.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index 4b3b523..5b169a9 100644 --- a/installer.sh +++ b/installer.sh @@ -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