Skip to content

Commit e99a554

Browse files
committed
[FIX] was not appending output correctly
1 parent 6ad47a9 commit e99a554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/smart_worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ def main():
5050

5151
with open(stdout_filename, 'a') as stdout_file:
5252
with open(stderr_filename, 'a') as stderr_file:
53-
if not stdout_already_exists:
53+
if stdout_already_exists:
5454
stdout_file.write(t.strftime("## %Y-%m-%d %H:%M:%S ##\n"))
5555
else:
5656
stdout_file.write("# " + command + '\n')
5757

58-
if not stderr_already_exists:
58+
if stderr_already_exists:
5959
stderr_file.write(t.strftime("## %Y-%m-%d %H:%M:%S ##\n"))
6060
else:
6161
stderr_file.write("# " + command + '\n')

0 commit comments

Comments
 (0)