Skip to content

Commit

Permalink
Fix silly typo that I wish was caught at compile time...doh
Browse files Browse the repository at this point in the history
  • Loading branch information
atj committed Jan 17, 2018
1 parent 827676f commit f5ddde3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Builder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ void read_file(websocket::stream<tcp::socket>& client_stream,
std::string build_command(const ClientData& client_data) {

std::string build_command;

if (client_data.backend == BackendType::singularity) {
std::string build_command = "/usr/bin/sudo SingularityBuilderBackend";
build_command = "/usr/bin/sudo /usr/local/bin/SingularityBuilderBackend";
} else if(client_data.backend == BackendType::docker) {
std::string build_command = "/usr/bin/sudo DockerBuilderBackend";
build_command = "/usr/bin/sudo /usr/local/bin/DockerBuilderBackend";
}

Logger::info("Build command prepared: " + build_command);
Expand Down

0 comments on commit f5ddde3

Please sign in to comment.