summaryrefslogtreecommitdiff
path: root/tools/flamebench.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/flamebench.js')
-rwxr-xr-xtools/flamebench.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/flamebench.js b/tools/flamebench.js
index 54705d266..7c79bd10f 100755
--- a/tools/flamebench.js
+++ b/tools/flamebench.js
@@ -3,11 +3,11 @@
import { join, ROOT_PATH as ROOT } from "./util.js";
async function bashOut(subcmd) {
- const { success, stdout } = await Deno.spawn("bash", {
+ const { success, stdout } = await new Deno.Command("bash", {
args: ["-c", subcmd],
stdout: "piped",
stderr: "null",
- });
+ }).output();
// Check for failure
if (!success) {
@@ -20,12 +20,12 @@ async function bashOut(subcmd) {
}
async function bashThrough(subcmd, opts = {}) {
- const { success, code } = await Deno.spawn("bash", {
+ const { success, code } = await new Deno.Command("bash", {
...opts,
args: ["-c", subcmd],
stdout: "inherit",
stderr: "inherit",
- });
+ }).output();
// Exit process on failure
if (!success) {