mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-22 14:13:01 +02:00
fix str split using old overwrite pipe instead of append pipe
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user