ofelman / HPIA-Repository-Downloader

The script is designed to create and maintain HP Image Assistant offline repositories with a GUI interface, and to update the repository with scripted runtime options
11 stars 10 forks source link

Addons flag file creation issue for new models added using INI import. #10

Open ryanedlund opened 2 years ago

ryanedlund commented 2 years ago

When using the INI import process to add new models, when trying to add Addons, until an initial sync has occurred for a new model the repository folder for the specific model doesn't yet exist, so the flag file containing the options doesn't get created, instead I see this:

image

Should be simple to add a test-path prior to that get-content, so we know if that needs created first (and possibly use a try/catch to avoid showing those errors), and add "-force" to that new-item action so the folder structure gets created if it doesn't yet exist.