check if the build branch type is coherent between what the user has specified and what is entered in the changelog

This commit is contained in:
OniriCorpe 2024-03-01 02:08:34 +01:00 committed by GitHub
parent b0a7f727d4
commit 7a4bad404b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,6 +82,12 @@ function checkout_tag()
function build()
{
# check if the build branch type is coherent between what the user has specified and what is entered in the changelog
if ! [[ head -n 1 debian/changelog == *"$BRANCH"* ]]; then
echo "The specified branch type is not coherent with the changelog one!"
exit 1
fi
# Create temporary folder
TMP_FOLDER=$(mktemp -d)