Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Nov 25, 2024
1 parent 9f0124d commit 2474c95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions src/shell-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down

0 comments on commit 2474c95

Please sign in to comment.