fix str split using old overwrite pipe instead of append pipe

This commit is contained in:
Nick Sweeting 2021-03-31 11:30:15 -04:00
parent 005da31f8f
commit 7ee7a94e67

View file

@ -1103,7 +1103,7 @@ def schedule(add: bool=False,
try:
for job in existing_jobs:
sys.stdout.write(f' > {job.command.split("/archivebox ")[0].split(" && ")[0]}\n')
sys.stdout.write(f' > {job.command.split("/archivebox ")[-1].split(" > ")[0]}')
sys.stdout.write(f' > {job.command.split("/archivebox ")[-1].split(" >> ")[0]}')
sys.stdout.flush()
job.run()
sys.stdout.write(f'\r{job.command.split("/archivebox ")[-1]}\n')
@ -1114,7 +1114,7 @@ def schedule(add: bool=False,
if foreground:
try:
for job in existing_jobs:
print(f' > {job.command.split("/archivebox ")[-1].split(" > ")[0]}')
print(f' > {job.command.split("/archivebox ")[-1].split(" >> ")[0]}')
for result in cron.run_scheduler():
print(result)
except KeyboardInterrupt: