Fix worktree provision fallback exit handling

This commit is contained in:
dotta committed 2026-04-01 10:26:17 -05:00
1 parent 0a11242c59
commit b8e6ab2355
2 files changed
+11 -1

No files matched your search

+8
View File
@@ -378,6 +378,14 @@ describe("worktree helpers", () => {
const sourceConfig = buildSourceConfig();
sourceConfig.database = {
mode: "postgres",
embeddedPostgresDataDir: path.join(sourceConfigDir, "db"),
embeddedPostgresPort: 54329,
backup: {
enabled: true,
intervalMinutes: 60,
retentionDays: 30,
dir: path.join(sourceConfigDir, "backups"),
},
connectionString: sourceDb.connectionString,
};
sourceConfig.logging.logDir = path.join(sourceConfigDir, "logs");
+3 -1
View File
@@ -312,7 +312,9 @@ main().catch((error) => {
EOF
}
if ! run_isolated_worktree_init; then
if run_isolated_worktree_init; then
:
else
status=$?
if [[ "$status" -ne 127 ]]; then
exit "$status"