Skip to content

Commit ed4be47

Browse files
committed
fix(template): return error code
1 parent 3215552 commit ed4be47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.git-templates/hooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PYTHON_EXIT_CODE=$?
3939

4040
if [ $PYTHON_EXIT_CODE -ne 0 ]; then
4141
echo "Python linting failed, check the Python files..."
42-
exit $ESLINT_EXIT_CODE
42+
exit $PYTHON_EXIT_CODE
4343
fi
4444

4545
# Run PHP linting
@@ -48,7 +48,7 @@ PHP_EXIT_CODE=$?
4848

4949
if [ $PHP_EXIT_CODE -ne 0 ]; then
5050
echo "PHP linting failed, check the PHP files..."
51-
exit $ESLINT_EXIT_CODE
51+
exit $PHP_EXIT_CODE
5252
fi
5353

5454
echo "All checks passed, pushing..."

0 commit comments

Comments
 (0)