Merge pull request #18 from LouisBrunner/master

Ignore errors when reading crontab listing as it fails if currently empty
This commit is contained in:
itsmesid 2020-10-09 22:06:58 +05:30 committed by GitHub
commit e078f66619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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