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

Unable to run using commands using v1.90 #6

Closed sean-firmston closed 2 years ago

sean-firmston commented 2 years ago

I'm very new to using the HPIA Repository Downloader, downloaded it yesterday, so hopefully I'm not missing something here but I've been using the GUI version of v1.90 and creating the repository however if I try and run it with command line switches it does nothing.

Looking at the code I see that line 3024 launches the sync_repos function with a single parameter:

if ( $PSBoundParameters.Keys.Contains('Sync') ) { sync_repos $Script:v_CommonRepo }

However the sync_repos function looks to require two parameters:

Function Sync_Repos { [CmdletBinding()] param( $pGrid, $pCommonRepoFlag )

Not sure if this is the reason why it will not run from the command line for me but it was the only thing I could see when looking at the code.

Thanks

Sean

ofelman commented 2 years ago

you are correct... was a coding error... try the latest version on GitHub, 1.92.02