util: fix the potential error of js_builder command (#13170)
parent
6168a4d3a2
commit
4660220f4c
|
@ -178,7 +178,7 @@ pub fn launch_tool(is_verbose bool, tool_name string, args []string) {
|
||||||
exit(os.system('"$tool_exe" $tool_args'))
|
exit(os.system('"$tool_exe" $tool_args'))
|
||||||
} $else $if js {
|
} $else $if js {
|
||||||
// no way to implement os.execvp in JS backend
|
// no way to implement os.execvp in JS backend
|
||||||
exit(os.system('$tool_exe $tool_args'))
|
exit(os.system('"$tool_exe" $tool_args'))
|
||||||
} $else {
|
} $else {
|
||||||
os.execvp(tool_exe, args) or { panic(err) }
|
os.execvp(tool_exe, args) or { panic(err) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue