Skip to content

Commit

Permalink
fix: exit code 0 for sucessful style check
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfmir committed Mar 8, 2024
1 parent b8db885 commit 351e248
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/style/check_style_file.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash

python3 ./.lake/packages/mathlib/scripts/lint-style.py $1 | grep -vE "ERR_COP"
errors=$(python3 ./.lake/packages/mathlib/scripts/lint-style.py $1 | grep -vE "ERR_COP")

if [ -z "$errors" ]; then
exit 0
else
echo "$errors"
exit 1
fi

0 comments on commit 351e248

Please sign in to comment.