mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-01 18:32:40 +02:00
Fix string checks in schedule
`s` comes through as a `PosixPath`, so both the `' ' in s` & return value, later used by `join`, complain.
This commit is contained in:
@@ -938,7 +938,7 @@ def schedule(add: bool=False,
|
|||||||
|
|
||||||
if every or add:
|
if every or add:
|
||||||
every = every or 'day'
|
every = every or 'day'
|
||||||
quoted = lambda s: f'"{s}"' if s and ' ' in s else s
|
quoted = lambda s: f'"{s}"' if s and ' ' in str(s) else str(s)
|
||||||
cmd = [
|
cmd = [
|
||||||
'cd',
|
'cd',
|
||||||
quoted(out_dir),
|
quoted(out_dir),
|
||||||
|
Reference in New Issue
Block a user