summaryrefslogtreecommitdiff
path: root/system/cron.py
diff options
context:
space:
mode:
Diffstat (limited to 'system/cron.py')
-rw-r--r--system/cron.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/cron.py b/system/cron.py
index b747a8cf..34307c6b 100644
--- a/system/cron.py
+++ b/system/cron.py
@@ -727,8 +727,9 @@ def main():
changed = True
# no changes to env/job, but existing crontab needs a terminating newline
- if not changed and not crontab.existing.endswith(('\r', '\n')):
- changed = True
+ if not changed:
+ if not (crontab.existing.endswith('\r') or crontab.existing.endswith('\n')):
+ changed = True
res_args = dict(
jobs = crontab.get_jobnames(),