OSDeploy / OSD

OSD Shared Functions
MIT License
144 stars 59 forks source link

Changed variable name WebClientTemp #45

Closed andre-sicking closed 1 year ago

andre-sicking commented 1 year ago

When 'curl.exe' is not available, $WebClient cannot be assigned a new object [System.Net.WebClient] as it is already defined as [System.Management.Automation.SwitchParameter] in the param section. So for downloading updates successfully without 'curl.exe' I just renamed the variable to make sure the object can be created.