diff --git a/cmd/bd/graph.go b/cmd/bd/graph.go index 53e54789..cc69d4d7 100644 --- a/cmd/bd/graph.go +++ b/cmd/bd/graph.go @@ -99,7 +99,7 @@ Colors indicate status: } // Render ASCII graph - renderGraph(layout, nil) + renderGraph(layout, subgraph) }, } diff --git a/npm-package/scripts/postinstall.js b/npm-package/scripts/postinstall.js index fd6951f6..7e24059e 100755 --- a/npm-package/scripts/postinstall.js +++ b/npm-package/scripts/postinstall.js @@ -73,8 +73,12 @@ function downloadFile(url, dest) { response.pipe(file); file.on('finish', () => { - file.close(); - resolve(); + // Wait for file.close() to complete before resolving + // This is critical on Windows where the file may still be locked + file.close((err) => { + if (err) reject(err); + else resolve(); + }); }); });