From f8f6b2faa06e329fe2b8b25a893cd4ea74aaad6b Mon Sep 17 00:00:00 2001 From: Louis Brunner Date: Fri, 2 Oct 2020 14:11:55 +0100 Subject: [PATCH] Ignore errors when reading crontab listing as it fails if currently empty --- advanced/Scripts/webpage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 637dc911..1d779faf 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -514,7 +514,7 @@ SpeedtestMode(){ SetCronTab() { # Remove OLD - crontab -l > crontab.tmp + crontab -l > crontab.tmp || true if [[ "$1" == "0" ]]; then sed -i '/speedtest/d' crontab.tmp