diff --git a/scripts/install.sh b/scripts/install.sh
index b1981b44f4e72bc569d1af935ee9482fc85a9f93..a9fd67492e39aafa1e9c271ffb1d1b9dfe0302e0 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -68,7 +68,7 @@ if [ $daemon = "y" ]; then
                 echo "The daemon is already in crontab"
             else
                 echo "Adding the daemon to crontab..."
-                crontab -l > crontab.tmp
+                crontab -l >> crontab.tmp
                 echo "@reboot /usr/bin/librehomeworkd" >> crontab.tmp
                 crontab crontab.tmp
                 rm crontab.tmp
diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh
index 52b9d8d5a8d7b9ae6ab4412963958a2183799fc1..854f3b487fe2e985b698e60e50dce87f7871d6b1 100755
--- a/scripts/uninstall.sh
+++ b/scripts/uninstall.sh
@@ -6,10 +6,10 @@ if [ $continue = "y" ]; then
 
     if crontab -l | grep -q "/usr/bin/librehomeworkd"; then
         echo "The daemon is in crontab, removing it..."
-        crontab -l > crontab.tmp
+        crontab -l >> crontab.tmp
 
         line=$(grep -n 'librehomeworkd' crontab.tmp)
-        sed ${line:0:1}d cron.tmp > _crontab.tmp
+        sed ${line:0:1}d crontab.tmp > _crontab.tmp
 
         crontab -r
         crontab _crontab.tmp