Skip to content

Commit

Permalink
refactor(src/cli/cli.cc): simplify [build] script_after
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Nov 3, 2023
1 parent 2daaa0e commit ec539eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,7 @@ void handleBuildPhaseForUserScript (
// Windows CreateProcess() won't work if the script has an extension other than exe (say .cmd or .bat)
// cmd.exe can handle this translation
if (platform.win) {
if (shouldPassBuildArgs) {
scriptArgs = " /c \"" + buildScript + " " + scriptArgs + "\"";
} else {
scriptArgs = " /c \"" + buildScript + "\"";
}
scriptArgs = " /c \"" + buildScript + scriptArgs + "\"";
buildScript = "cmd.exe";
}

Expand Down

0 comments on commit ec539eb

Please sign in to comment.