mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-03 14:10:15 +00:00
Ignore errors when reading crontab listing as it fails if currently empty
This commit is contained in:
parent
dea0a70497
commit
f8f6b2faa0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue