mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-18 05:10:13 +00:00
Merge pull request #18 from LouisBrunner/master
Ignore errors when reading crontab listing as it fails if currently empty
This commit is contained in:
commit
e078f66619
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
Add a link
Reference in a new issue