Skip to content

Commit b2b488f

Browse files
author
Rachel Macfarlane
authored
Only write config file during postinstall if process env variables are present (microsoft#91793)
1 parent a8c3c47 commit b2b488f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/github-authentication/build/postinstall.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ function main() {
2020
}
2121
}
2222

23-
fs.writeFileSync(path.join(__dirname, '../src/common/config.json'), JSON.stringify(content));
23+
if (Object.keys(content).length > 0) {
24+
fs.writeFileSync(path.join(__dirname, '../src/common/config.json'), JSON.stringify(content));
25+
}
2426
}
2527

2628
main();

0 commit comments

Comments
 (0)