Minor fix
This commit is contained in:
1 parent
a8c97016ef
commit
3edf2e9363
2 files changed
+6
-4
No files matched your search
+3
-2
@@ -28,13 +28,14 @@ export function configAuthentication(
|
||||
}
|
||||
|
||||
function getExistingNugetConfig(processRoot: string) {
|
||||
const defaultConfigName = 'nuget.config';
|
||||
const configFileNames = fs
|
||||
.readdirSync(processRoot)
|
||||
.filter(filename => filename.toLowerCase() === 'nuget.config');
|
||||
.filter(filename => filename.toLowerCase() === defaultConfigName);
|
||||
if (configFileNames.length) {
|
||||
return configFileNames[0];
|
||||
}
|
||||
return 'nuget.config';
|
||||
return defaultConfigName;
|
||||
}
|
||||
|
||||
function writeFeedToFile(
|
||||
|
||||
Reference in new issue
Block a user