mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-04 06:30:19 +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()
|
SetCronTab()
|
||||||
{
|
{
|
||||||
# Remove OLD
|
# Remove OLD
|
||||||
crontab -l > crontab.tmp
|
crontab -l > crontab.tmp || true
|
||||||
|
|
||||||
if [[ "$1" == "0" ]]; then
|
if [[ "$1" == "0" ]]; then
|
||||||
sed -i '/speedtest/d' crontab.tmp
|
sed -i '/speedtest/d' crontab.tmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue