Skip to content

Commit 2e7eb50

Browse files
authored
JavaScript: Use synchronous APIs in examples for js/shell-command-constructed-from-input.
1 parent d27f84e commit 2e7eb50

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)