Skip to content

Commit

Permalink
Fix mamba run not creating proc dir before using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Feb 23, 2022
1 parent e5bb726 commit 7edcccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion micromamba/src/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ namespace mamba

std::unique_ptr<LockFile> lock_proc_dir()
{
fs::create_directories(proc_dir());
auto lockfile = LockFile::try_lock(proc_dir());
if (!lockfile)
{
Expand Down Expand Up @@ -297,6 +296,9 @@ set_run_command(CLI::App* subcom)
exit(1);
}

// Make sure the proc directory is always existing and ready.
fs::create_directories(proc_dir());

LOG_DEBUG << "Currently running processes: " << get_all_running_processes_info();
LOG_DEBUG << "Remaining args to run as command: " << join(" ", command);

Expand Down

0 comments on commit 7edcccf

Please sign in to comment.