fix: flush bash hook output safely

This commit is contained in:
Affaan Mustafa
2026-04-14 21:20:01 -07:00
parent a8bb5979a5
commit 4a9918db00
7 changed files with 24 additions and 10 deletions

View File

@@ -50,6 +50,7 @@ if (require.main === module) {
}
process.stdout.write(String(result.stdout || ''));
process.exit(Number.isInteger(result.exitCode) ? result.exitCode : 0);
return;
}
process.stdout.write(String(result));