Skip to content

Commit

Permalink
use bundled only if is defined and non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Apr 23, 2024
1 parent 36b8cc8 commit dceb88d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/installer/bundled-miniconda.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as types from "../types";
import { MINICONDA_DIR_PATH } from "../constants";

/**
* Provide a path to the pre-bundled (but probably old) Miniconda base installation
Expand All @@ -15,7 +16,8 @@ export const bundledMinicondaUser: types.IInstallerProvider = {
inputs.miniforgeVariant === "" &&
inputs.miniforgeVersion === "" &&
inputs.architecture === "x64" &&
inputs.installerUrl === ""
inputs.installerUrl === "" &&
MINICONDA_DIR_PATH.length > 0
);
},
installerPath: async (inputs, options) => {
Expand Down

0 comments on commit dceb88d

Please sign in to comment.