Skip to content

Commit 01a01d5

Browse files
committed
Fix bug: backintime root crontab doesn't run; missinng line-feed 0x0A on last line (fixes #781)
1 parent 6c36080 commit 01a01d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Back In Time
22

33
Version 1.2.0~alpha0
4+
* Fix bug: backintime root crontab doesn't run; missinng line-feed 0x0A on last line (https://github.com/bit-team/backintime/issues/781)
45
* Fix bug: IndexError in inhibitSuspend (https://github.com/bit-team/backintime/issues/772)
56
* alleviate default exclude [Tt]rash* (https://github.com/bit-team/backintime/issues/759)
67
* enable high DPI scaling (https://github.com/bit-team/backintime/issues/732)

common/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def writeCrontab(lines):
12351235
assert isinstance(lines, (list, tuple)), 'lines is not list or tuple type: %s' % lines
12361236
with tempfile.NamedTemporaryFile(mode = 'wt') as f:
12371237
f.write('\n'.join(lines))
1238-
f.write('\n')
1238+
f.write('\n\n')
12391239
f.flush()
12401240
cmd = ['crontab', f.name]
12411241
proc = subprocess.Popen(cmd,

0 commit comments

Comments
 (0)