Skip to content

Commit 3c71b45

Browse files
committed
fix: Return non-zero status when main.py crashes in entrypoint.sh
1 parent 87d38d3 commit 3c71b45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ echo "Searching for code snippets in $README_PATHS..."
1212

1313
poetry run python /app/src/main.py
1414

15+
if [ $? -ne 0 ]; then
16+
exit 1
17+
fi
18+
1519
if [ -n "$(git status -s)" ]; then
1620

1721
echo "Changes to commit..."

0 commit comments

Comments
 (0)