Skip to content

Commit

Permalink
copy mamba.bat if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Nov 25, 2024
1 parent ab6bf8b commit 4c725e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shell-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ 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)
if (existsSync(mambaBat)) {
return fs.copyFile(mambaBat, micromambaBat)
}

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

View workflow job for this annotation

GitHub Actions / build

Delete `⏎·`
else {
return Promise.resolve(undefined)
}
}

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

0 comments on commit 4c725e6

Please sign in to comment.