From 9b0e9e82daf7998cfd9e5b932bf35d76e61eb8ab Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 13 Jul 2024 12:22:04 -0400 Subject: The way the logic is set up I've decided to duplicate the installation code for now until I find time to revise it * The only meaningful difference between a "fresh start" and reusing the conda installation is a rmtree(). --- src/delivery.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/delivery.c b/src/delivery.c index 11c5581..37845a8 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -1421,6 +1421,18 @@ void delivery_install_conda(char *install_script, char *conda_install_dir) { exit(1); } + // Proceed with the installation + // -b = batch mode (non-interactive) + char cmd[PATH_MAX] = {0}; + snprintf(cmd, sizeof(cmd) - 1, "%s %s -b -p %s", + find_program("bash"), + install_script, + conda_install_dir); + if (shell_safe(&proc, cmd)) { + fprintf(stderr, "conda installation failed\n"); + exit(1); + } + } else { // Proceed with the installation // -b = batch mode (non-interactive) char cmd[PATH_MAX] = {0}; -- cgit