gleich / fgh

📁 Automate the lifecycle and organization of your cloned GitHub repositories
MIT License
142 stars 17 forks source link

fgh configure fails when folder is not yet created #28

Closed jasonappah closed 3 years ago

jasonappah commented 3 years ago

Description

When I ran fgh configure for the first time, I received this error:

░░░░░░░░░░░
░✗ ERROR ✗░
░░░░░░░░░░░

Failed to write config secrets

GOLANG ERROR (SHOW DEVELOPER):
open /home/jasonantwiappah/.config/fgh/config.yaml: no such file or directory

Steps to reproduce

I ran fgh configure after initially installing fgh. I have a ~/.config folder but no fgh folder within that. Once I manually created the folder and reran fgh configure everything worked.

Logs/Screenshots

image

If you'd like I can make a PR to fix this, I've been meaning to learn go for a while ;)

gleich commented 3 years ago

Hey @jasonappah! Sorry to hear that you are having this problem. Just pushed out a fix and should be released in fgh 2.5.5

gleich commented 3 years ago

@jasonappah this is now out in fgh v2.5.5!

jasonappah commented 3 years ago

Thanks, everything seems to be working!