mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-02-05 02:47:08 +08: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:
parent
ff6a28a27f
commit
be7a7f8548
@ -938,7 +938,7 @@ def schedule(add: bool=False,
|
||||
|
||||
if every or add:
|
||||
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 = [
|
||||
'cd',
|
||||
quoted(out_dir),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user