Skip to content

Commit 5dfe52a

Browse files
authored
Merge pull request github#13152 from github/max-schaefer/unsafe-shell-command-construction-examples-sync
JavaScript: Use synchronous APIs in examples for js/shell-command-constructed-from-input.
2 parents ed0524d + 2e7eb50 commit 5dfe52a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var cp = require("child_process");
22

33
module.exports = function download(path, callback) {
4-
cp.exec("wget " + path, callback);
4+
cp.execSync("wget " + path, callback);
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var cp = require("child_process");
22

33
module.exports = function download(path, callback) {
4-
cp.execFile("wget", [path], callback);
4+
cp.execFileSync("wget", [path], callback);
55
}

0 commit comments

Comments
 (0)