Skip to content

Commit

Permalink
check_pre_commit_consistency: put error reports on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix committed Oct 23, 2024
1 parent e5adb8c commit b0d1604
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/check_pre_commit_consistency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ do_check() {
for tool in "${TOOLS[@]}"; do
package=$(installed_package_version "$tool")
hook=$(pre_commit_hook_version "$tool")
echo -n "$tool: package=$package hook=$hook "
if [ -n "$package" ] && [ "$package" = "$hook" ]; then
echo " OK"
echo "$tool: version=$package OK"
else
echo " FAIL"
echo "$tool: package=$package hook=$hook FAIL" >&2
exit_code=1
fi
done
Expand Down

0 comments on commit b0d1604

Please sign in to comment.