test: Enable SC2086 shellcheck rule

This commit is contained in:
Hennadii Stepanov
2021-11-07 14:13:39 +02:00
parent 5cc083cd46
commit 9a1ad7bc0d
20 changed files with 62 additions and 57 deletions

View File

@@ -38,7 +38,7 @@ while IFS= read -r commit_hash || [[ -n "$commit_hash" ]]; do
while IFS= read -r line || [[ -n "$line" ]]; do
n_line=$((n_line+1))
length=${#line}
if [ $n_line -eq 2 ] && [ $length -ne 0 ]; then
if [ $n_line -eq 2 ] && [ "$length" -ne 0 ]; then
echo "The subject line of commit hash ${commit_hash} is followed by a non-empty line. Subject lines should always be followed by a blank line."
EXIT_CODE=1
fi