summaryrefslogtreecommitdiff
path: root/tools/check-changelog
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check-changelog')
-rw-r--r--tools/check-changelog4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/check-changelog b/tools/check-changelog
index 970f3066f..c3e9e07c7 100644
--- a/tools/check-changelog
+++ b/tools/check-changelog
@@ -8,12 +8,12 @@ for i in add remove fix security skip; do
retcode=$?
if [ $retcode -eq 0 ]; then
echo "found $CI_MERGE_REQUEST_IID.$i"
+ count=$(( count++ ))
else
echo "no $CI_MERGE_REQUEST_IID.$i"
fi
- count=$(( $count + 1 - $retcode ))
done
-if [ $count -eq 1 ]; then
+if [ $count -gt 0 ]; then
echo "ok"
exit 0
else