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
|
#!/bin/sh
|
||||||
|
|
||||||
echo $CI_MERGE_REQUEST_IID
|
echo "looking for change log of $CI_MERGE_REQUEST_IID"
|
||||||
ls changelog.d
|
|
||||||
count=0
|
count=0
|
||||||
for i in add remove fix security skip; do
|
for i in add remove fix security skip; do
|
||||||
[ -f changelog.d/"$CI_MERGE_REQUEST_IID"."$i" ]
|
[ -f changelog.d/"$CI_MERGE_REQUEST_IID"."$i" ]
|
||||||
retcode=$?
|
retcode=$?
|
||||||
if [ $retcode -eq 0 ]; then
|
if [ $retcode -eq 0 ]; then
|
||||||
echo "found $CI_MERGE_REQUEST_IID.$i"
|
echo "found $CI_MERGE_REQUEST_IID.$i"
|
||||||
count=$(( count++ ))
|
count=$(( count + 1 ))
|
||||||
else
|
else
|
||||||
echo "no $CI_MERGE_REQUEST_IID.$i"
|
echo "no $CI_MERGE_REQUEST_IID.$i"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue