summaryrefslogtreecommitdiff
path: root/tools/wgpu_sync.js
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2022-07-21 14:15:15 +0530
committerGitHub <noreply@github.com>2022-07-21 14:15:15 +0530
commite98e0da8b218aa2b68d82ee7d777f499b10237aa (patch)
tree05cc660c005c35bdc27a4f37be295a0f06a3ccee /tools/wgpu_sync.js
parentf0e01682cce638303e3b6997788667a0f71dff8d (diff)
fix(tools): upgrade to new `Deno.spawn` api (#15265)
Diffstat (limited to 'tools/wgpu_sync.js')
-rwxr-xr-xtools/wgpu_sync.js6
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);
}
}