Skip to content

Commit

Permalink
use correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed May 4, 2024
1 parent daf9393 commit 4e18873
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/node_task_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ std::string EscapeShell(const std::string_view input) {
// Passing "--help "sdfsd"" to a batch script
// will be considered as a single argument made
// of --help "sdfsd". However, there are corner cases.
std::string escaped = "\"" + escaped + "\"";
std::string escaped = "\"" + std::string(input) + "\"";
#else
// Replace single quotes("'") with "\\'"
std::string escaped =
Expand Down
10 changes: 6 additions & 4 deletions test/fixtures/run-script/node_modules/.bin/positional-args.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e18873

Please sign in to comment.