The test is a bit of a hacky way to find the sources. but going through the XML config was preferable to doing a select-string/regex on the output to chocolatey sources list.
It compares on name not URL. so if name already exists but the URL is different it won't overwrite it will return true. this can be improved later if required.
This is for #24.
The test is a bit of a hacky way to find the sources. but going through the XML config was preferable to doing a select-string/regex on the output to chocolatey sources list.
It compares on name not URL. so if name already exists but the URL is different it won't overwrite it will return true. this can be improved later if required.