Skip to content

Commit 464daf8

Browse files
committed
fix: disable set -e during custom_script execution
Custom scripts may have commands that return non-zero exit codes even when successful (e.g., checking if something exists). Wrapping with set +e / set -e prevents these from aborting the entire install.
1 parent f86d926 commit 464daf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hooks.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ ${
6161
? `
6262
echo ""
6363
echo "=== Running Custom Post-Install Script ==="
64+
set +e
6465
${customScript}
66+
set -e
6567
`
6668
: ''
6769
}

0 commit comments

Comments
 (0)