Closed quarterturn closed 1 year ago
I believe the issue is this line. Can you try on your end trackma -a 1 list | head -n -2
?
Some implementations of head
like GNU head
support negative arguments for -n. It is likely that on OSX Ventura it does not. As such this line fails.
If that is the case then commands such as adl -v
will also fail, the change_providers
, check_for_updates
too.
I suppose the easiest workaround for this would be something like this:
trackma -a 1 list | sed '$d' | sed '$d'
I might find a more efficient solution, but I would like you to test this command to see if it works on your system.
Yeah it's even in the newer macports bash:
bash-5.2$ trackma -a 1 list | head -n -2
head: illegal line count -- -2
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
bash-5.2$ trackma -a 1 list | sed '$d' | sed '$d'
| Index Title Progress Score |
| 1 Mushoku Tensei: Jobless Reincarnation Season 2. 6 / 13 0 |
| 2 Rurouni Kenshin................................ 5 / 94 0 |
bash-5.2$
I have made a different branch for this issue. You can see it above. I have also tested on my system and it appears to be working as expected, but I would like you to test the changes and see if adl works for you.
It is now working. Thank you.
adl seems to be having a problem with trackma when it invokes it, as the following exception is seen before adl exits:
Using tee when running adl gets a little more information:
'git show' for adl:
macports bash version:
trackma version:
trackma is configured with some shows: