Skip to content

Commit

Permalink
fix: Conditionally copy script
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 ab6bf8b commit b834093
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shell-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ const removeMambaInitBlockFromBashProfile = () => {
const copyMambaBatToMicromambaBat = (options: Options) => {
const mambaBat = path.join(options.micromambaRootPath, 'condabin', 'mamba.bat')
const micromambaBat = path.join(options.micromambaRootPath, 'condabin', 'micromamba.bat')
return fs.copyFile(mambaBat, micromambaBat)

// mamba 2.0.x compatibility
if (existsSync(mambaBat) && !existsSync(micromambaBat)) {
return fs.copyFile(mambaBat, micromambaBat)

Check failure on line 46 in src/shell-init.ts

View workflow job for this annotation

GitHub Actions / build

Delete `··`
}
}

export const shellInit = (options: Options, shell: string) => {
Expand Down

0 comments on commit b834093

Please sign in to comment.