mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Fix counting
This commit is contained in:
parent
89a40b867d
commit
686c3e03bd
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo $CI_MERGE_REQUEST_IID
|
||||
ls changelog.d
|
||||
echo "looking for change log of $CI_MERGE_REQUEST_IID"
|
||||
|
||||
count=0
|
||||
for i in add remove fix security skip; do
|
||||
[ -f changelog.d/"$CI_MERGE_REQUEST_IID"."$i" ]
|
||||
retcode=$?
|
||||
if [ $retcode -eq 0 ]; then
|
||||
echo "found $CI_MERGE_REQUEST_IID.$i"
|
||||
count=$(( count++ ))
|
||||
count=$(( count + 1 ))
|
||||
else
|
||||
echo "no $CI_MERGE_REQUEST_IID.$i"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue