Skip to content
Snippets Groups Projects
Commit 65abf8f7 authored by Basile Desloges's avatar Basile Desloges
Browse files

[script] Fix exit code of `check_newline.sh`

If the script find some errors, then the exit code is 1 instead of 0.
parent c1301773
No related branches found
No related tags found
No related merge requests found
...@@ -32,5 +32,5 @@ done < <(file -f "$1" --mime | grep '\btext' | cut -d: -f1) ...@@ -32,5 +32,5 @@ done < <(file -f "$1" --mime | grep '\btext' | cut -d: -f1)
if [ $errors -gt 0 ]; then if [ $errors -gt 0 ]; then
echo "Found $errors file(s) with errors." echo "Found $errors file(s) with errors."
exit 0 exit 1
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment