Skip to content

Commit

Permalink
Fix error message in make_deb
Browse files Browse the repository at this point in the history
qau20c26n2/opt/opensvc/bin/pkg/make_deb: line 10: cd: /opt/opensvc/bin/pkg/../../tmp/BUILDROOT/opensvc-2.1-94/..: No such file or directory
  • Loading branch information
arnaudveron committed Jun 26, 2020
1 parent 0401b99 commit f60ca93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/pkg/make_deb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ PATH_SCRIPT="$(cd $(/usr/bin/dirname $(type -p -- $0 || echo $0));pwd)"
DEB=opensvc-$VERSION-$RELEASE.deb

[[ ! -z $CHROOT ]] && {
MCWD=$(pwd)
cd $CHROOT/.. && rm -rf opensvc*
cd $MCWD
test -d $CHROOT && {
MCWD=$(pwd)
cd $CHROOT/.. && rm -rf opensvc*
cd $MCWD
}
}


function changelog {
git log -n 100 --pretty=format:"opensvc (__V__) unstable; urgency=medium%n%n * %s%n%n -- %an <%ae> %ad%n" | \
awk -v BRANCH=$BRANCH 'BEGIN{cmd="git describe --tags " BRANCH ; cmd | getline rev; split(rev, a, "-"); rev=a[2]}{if (rev<0){exit};if (/__V__/){sub(/__V__/, a[1] "-" rev, $0); print $0; rev=rev-1} else {print}}'
Expand Down

0 comments on commit f60ca93

Please sign in to comment.