summaryrefslogtreecommitdiff
path: root/tools/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util.js')
-rw-r--r--tools/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/util.js b/tools/util.js
index 98ccc77ce..cd9e30314 100644
--- a/tools/util.js
+++ b/tools/util.js
@@ -17,12 +17,12 @@ async function getFilesFromGit(baseDir, cmd) {
cmd,
stdout: "piped",
});
+ const output = new TextDecoder().decode(await p.output());
const { success } = await p.status();
if (!success) {
throw new Error("gitLsFiles failed");
}
- const output = new TextDecoder().decode(await p.output());
p.close();
const files = output.split("\0").filter((line) => line.length > 0).map(