Skip to content

Commit

Permalink
Put a whitespace for subshell before a close paren
Browse files Browse the repository at this point in the history
instead of after an open paren.
  • Loading branch information
shinh committed Mar 16, 2016
1 parent ce7a2b4 commit f124de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ninja.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class NinjaGenerator {
bool needs_subshell = (command_count > 1 || c->ignore_error);

if (needs_subshell)
*cmd_buf += "( ";
*cmd_buf += '(';

size_t cmd_start = cmd_buf->size();
StringPiece translated = TranslateCommand(in, cmd_buf);
Expand Down Expand Up @@ -454,7 +454,7 @@ class NinjaGenerator {
}

if (needs_subshell)
*cmd_buf += ')';
*cmd_buf += " )";
}
return (was_gomacc_found || g_flags.remote_num_jobs ||
g_flags.goma_dir) && !use_gomacc;
Expand Down

0 comments on commit f124de0

Please sign in to comment.