Skip to content

Commit

Permalink
Preserve environment so it's based to builder backends
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Feb 18, 2018
1 parent 7b7402c commit dec11ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Builder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ std::string build_command(const ClientData &client_data) {

// Basic build command
if (client_data.backend == BackendType::singularity) {
build_command = "/usr/bin/sudo /usr/local/bin/singularity-builder-backend.sh";
build_command = "/usr/bin/sudo -E /usr/local/bin/singularity-builder-backend.sh";
} else if (client_data.backend == BackendType::docker) {
build_command = "/usr/bin/sudo /usr/local/bin/docker-builder-backend.sh";
build_command = "/usr/bin/sudo -E /usr/local/bin/docker-builder-backend.sh";
} else {
throw std::runtime_error("Invalid builder backend");
}
Expand Down

0 comments on commit dec11ed

Please sign in to comment.