mattpannella / pupdate

Pupdate - A thing for updating your Analogue Pocket
https://mattpannella.github.io/pupdate/
MIT License
1.07k stars 38 forks source link

No longer creates directory if --path is used with a non-existant folder #266

Closed p-rintz closed 7 months ago

p-rintz commented 7 months ago

Describe the bug

When used with the -p toggle (as is need with NixOS for example), pupdate no longer creates the pupdate_settings.json file in a new folder and just errors out if the folder does not exist already (ie a new install):

Well, something went wrong. Sorry about that.
Could not find a part of the path '/home/philipp/test/test/pupdate_settings.json'.
Press any key to continue.

To Reproduce Steps to reproduce the behavior:

  1. Start with '-p' flag and a non-existent folder
  2. Receive error above

Expected behavior The folder should be created.

Desktop (please complete the following information):

Contents of settings file Not relevant.