1
0
Fork 0
mirror of synced 2024-06-02 02:25:20 +12: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:
mAAdhaTTah 2020-11-23 18:34:07 -05:00
parent ff6a28a27f
commit be7a7f8548
No known key found for this signature in database
GPG key ID: 4C82AA17660179FF

View file

@ -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),