diff --git a/dist/main.js b/dist/main.js index 4429ab8..ab3276d 100644 --- a/dist/main.js +++ b/dist/main.js @@ -82847,12 +82847,9 @@ var copyMambaInitBlockToBashProfile = () => { }; var copyMambaBatToMicromambaBat = (options) => { const mambaBat = import_path.default.join(options.micromambaRootPath, "condabin", "mamba.bat"); - const micromambaBat = import_path.default.join(options.micromambaRootPath, "condabin", "micromamba.bat"); - if ((0, import_fs.existsSync)(mambaBat) && !(0, import_fs.existsSync)(micromambaBat)) { - core4.info("Copying mamba.bat to micromamba.bat (compatibility with mamba 2.0.0, 2.0.1 and 2.0.2)"); + if ((0, import_fs.existsSync)(mambaBat)) { + const micromambaBat = import_path.default.join(options.micromambaRootPath, "condabin", "micromamba.bat"); return fs3.copyFile(mambaBat, micromambaBat); - } else { - core4.info("Not copying mamba.bat to micromamba.bat because it already exists"); } }; var shellInit = (options, shell) => { diff --git a/src/shell-init.ts b/src/shell-init.ts index 4eb8343..fd3cd3e 100644 --- a/src/shell-init.ts +++ b/src/shell-init.ts @@ -39,13 +39,10 @@ const removeMambaInitBlockFromBashProfile = () => { const copyMambaBatToMicromambaBat = (options: Options) => { const mambaBat = path.join(options.micromambaRootPath, 'condabin', 'mamba.bat') - const micromambaBat = path.join(options.micromambaRootPath, 'condabin', 'micromamba.bat') - if (existsSync(mambaBat) && !existsSync(micromambaBat)) { - core.info('Copying mamba.bat to micromamba.bat (compatibility with mamba 2.0.0, 2.0.1 and 2.0.2)') + if (existsSync(mambaBat)) { + const micromambaBat = path.join(options.micromambaRootPath, 'condabin', 'micromamba.bat') return fs.copyFile(mambaBat, micromambaBat) - } else { - core.info('Not copying mamba.bat to micromamba.bat because it already exists') } }