diff --git a/dist/setup/index.js b/dist/setup/index.js index ab138ed2..4bc4fd27 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -47063,8 +47063,9 @@ exports.updateMamba = { postInstall: (inputs, options) => __awaiter(void 0, void 0, void 0, function* () { const mambaBat = conda.condaExecutable(options).replace(/\\/g, "/"); if (!mambaBat.includes("condabin")) { - const condabinLocation = path.join(conda.condaBasePath(options), "condabin", `mamba${constants.IS_WINDOWS ? ".bat" : ""}`); + const condabinLocation = path.join(conda.condaBasePath(options), "condabin", path.basename(mambaBat)); if (!fs.existsSync(condabinLocation)) { + core.info("Copying `mamba` to condabin/"); fs.copyFileSync(mambaBat, condabinLocation); } } diff --git a/src/base-tools/update-mamba.ts b/src/base-tools/update-mamba.ts index 246de5bf..620c138e 100644 --- a/src/base-tools/update-mamba.ts +++ b/src/base-tools/update-mamba.ts @@ -29,9 +29,10 @@ export const updateMamba: types.IToolProvider = { const condabinLocation = path.join( conda.condaBasePath(options), "condabin", - `mamba${constants.IS_WINDOWS ? ".bat" : ""}`, + path.basename(mambaBat), ); if (!fs.existsSync(condabinLocation)) { + core.info("Copying `mamba` to condabin/"); fs.copyFileSync(mambaBat, condabinLocation); } }