Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Mar 19, 2020
1 parent 4c577c7 commit df29c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32795,11 +32795,12 @@ function applyCondaConfiguration(condaConfig, useBundled) {
// Split by comma and reverse order to preserve higher priority
// as listed in the option
let channels = condaConfig[key].split(",").reverse();
channels.forEach((channel) => __awaiter(this, void 0, void 0, function* () {
let channel;
for (channel of channels) {
result = yield condaCommand(`config --add ${key} ${channel}`, useBundled);
if (!result.ok)
return result;
}));
}
}
else {
result = yield condaCommand(`config --set ${key} ${condaConfig[key]}`, useBundled);
Expand Down
5 changes: 3 additions & 2 deletions src/setup-conda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,14 @@ async function applyCondaConfiguration(
// Split by comma and reverse order to preserve higher priority
// as listed in the option
let channels: Array<string> = condaConfig[key].split(",").reverse();
channels.forEach(async (channel: string) => {
let channel: string;
for (channel of channels) {
result = await condaCommand(
`config --add ${key} ${channel}`,
useBundled
);
if (!result.ok) return result;
});
}
} else {
result = await condaCommand(
`config --set ${key} ${condaConfig[key]}`,
Expand Down

0 comments on commit df29c42

Please sign in to comment.