diff --git a/bin/installbfa.sh b/bin/installbfa.sh
index 8071abe91eb6582c637fe9f6230595015f5d2616..8f7c884c9f16a6569861f0593f63342983e3289d 100755
--- a/bin/installbfa.sh
+++ b/bin/installbfa.sh
@@ -167,10 +167,10 @@ function usersetup
 
 function cronit
 {
-    if [ $( crontab -u bfa -l 2>/dev/null | expand | grep -E 'bfa/bin/cron.sh$' | wc -l ) -eq 0 ]
+    if [ $( ( crontab -u bfa -l 2>/dev/null || true ) | grep -E 'bfa/bin/cron.sh$' | wc -l ) -eq 0 ]
     then
         info Install crontab to start automatically upon reboot
-        ( crontab -u bfa -l ; echo '@reboot bfa/bin/cron.sh' ) | crontab -u bfa -
+        (( crontab -u bfa -l 2>/dev/null || true ) ; echo '@reboot bfa/bin/cron.sh' ) | crontab -u bfa -
     fi
 }