mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
fix str split using old overwrite pipe instead of append pipe
This commit is contained in:
parent
005da31f8f
commit
7ee7a94e67
1 changed files with 2 additions and 2 deletions
|
@ -1103,7 +1103,7 @@ def schedule(add: bool=False,
|
||||||
try:
|
try:
|
||||||
for job in existing_jobs:
|
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 ")[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()
|
sys.stdout.flush()
|
||||||
job.run()
|
job.run()
|
||||||
sys.stdout.write(f'\r √ {job.command.split("/archivebox ")[-1]}\n')
|
sys.stdout.write(f'\r √ {job.command.split("/archivebox ")[-1]}\n')
|
||||||
|
@ -1114,7 +1114,7 @@ def schedule(add: bool=False,
|
||||||
if foreground:
|
if foreground:
|
||||||
try:
|
try:
|
||||||
for job in existing_jobs:
|
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():
|
for result in cron.run_scheduler():
|
||||||
print(result)
|
print(result)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue