diff options
author | Satya Rohith <me@satyarohith.com> | 2022-07-21 14:15:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 14:15:15 +0530 |
commit | e98e0da8b218aa2b68d82ee7d777f499b10237aa (patch) | |
tree | 05cc660c005c35bdc27a4f37be295a0f06a3ccee /tools/wgpu_sync.js | |
parent | f0e01682cce638303e3b6997788667a0f71dff8d (diff) |
fix(tools): upgrade to new `Deno.spawn` api (#15265)
Diffstat (limited to 'tools/wgpu_sync.js')
-rwxr-xr-x | tools/wgpu_sync.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/wgpu_sync.js b/tools/wgpu_sync.js index eda5c5e18..06dbe7381 100755 --- a/tools/wgpu_sync.js +++ b/tools/wgpu_sync.js @@ -9,7 +9,7 @@ const V_WGPU = "0.13"; const TARGET_DIR = join(ROOT_PATH, "ext", "webgpu"); async function bash(subcmd, opts = {}) { - const { status } = await Deno.spawn("bash", { + const { success, code } = await Deno.spawn("bash", { ...opts, args: ["-c", subcmd], stdout: "inherit", @@ -17,8 +17,8 @@ async function bash(subcmd, opts = {}) { }); // Exit process on failure - if (!status.success) { - Deno.exit(status.code); + if (!success) { + Deno.exit(code); } } |