RasmusLindroth / tut

TUI for Mastodon with vim inspired keys
https://tut.anv.nu
MIT License
449 stars 29 forks source link

Fails to create ~/.config/tut if ~/.config doesn't already exist #169

Closed sjmulder closed 1 year ago

sjmulder commented 1 year ago

tut yields an error when the ~/.config directory doesn't yet exist:

$ file ~/.config
/home/sjmulder/.config: cannot open `/home/sjmulder/.config' (No such file or directory)

$ tut
2022/11/08 23:25:50 couldn't create dirs. Error: mkdir /home/sjmulder/.config/tut: no such file or directory

$ mkdir ~/.config

$ tut
You will have to log in to your Mastodon instance to be able
to use Tut. The default protocol is https:// so you won't need
...

It should probably create it automatically.

RasmusLindroth commented 1 year ago

Thank you for finding the bug. A fix will land in the next release, which I hope won't be that far away

RasmusLindroth commented 1 year ago

It's fixed in release 1.0.18