From 26582649cc12b644c1d41f305a19331a27e03e22 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 28 Dec 2015 09:39:34 +0100 Subject: [PATCH] =?UTF-8?q?Hook=2005-create-changelog-prebuild:=20ne=20pas?= =?UTF-8?q?=20quitter=20le=20script=20en=20erreur=20si=20la=20g=C3=A9n?= =?UTF-8?q?=C3=A9ration=20du=20changelog=20a=20=C3=A9chou=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/05-create-changelog-prebuild | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hooks/05-create-changelog-prebuild b/hooks/05-create-changelog-prebuild index 6ca58dc..8ac59ae 100755 --- a/hooks/05-create-changelog-prebuild +++ b/hooks/05-create-changelog-prebuild @@ -8,14 +8,12 @@ fi # Get commits log as changelog -BUILD_BRANCH=$(get_opt build_branch dist/ubuntu/precise/master) BUILD_TAG=$(get_opt build_tag "last") echo "BUILD TAG IS ${BUILD_TAG}" if [[ ${BUILD_TAG} == "last" ]] then - git checkout ${BUILD_BRANCH} tags=$(git tag master -l "release/*"|sort -r) else tagbranch="build-tag-${BUILD_TAG}" @@ -26,8 +24,8 @@ fi if [[ -z ${tags} ]] then - error "No relase tag found, you repo must have a tag like 'release/X.X'" - exit 2 + error "No release tag found, you repo must have a tag like 'release/X.X'" + exit fi touch debian/changelog