diff --git a/ynh-build b/ynh-build index 3d60b2f..6f03813 100755 --- a/ynh-build +++ b/ynh-build @@ -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)