From a5805388a73d765f27ea666e5e3cc3d39221e5ba Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 14 May 2019 22:53:19 +0200 Subject: [PATCH] Correct package build script for release --- dev/pkgbuild-macosx.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/pkgbuild-macosx.sh b/dev/pkgbuild-macosx.sh index 9a053ff..991a2f8 100755 --- a/dev/pkgbuild-macosx.sh +++ b/dev/pkgbuild-macosx.sh @@ -174,10 +174,12 @@ if [ ! -d "$GAMMALIB" ]; then rm -rf $GAMMALIB.tar.gz cd $GAMMALIB fi +else + cd $GAMMALIB fi # If we got code from GitLab, then try using release branch, and if not # available, use devel branch. -USE_BRANCH= +USE_BRANCH=release if [ -d ".git" ]; then git fetch git checkout release @@ -231,6 +233,8 @@ if [ ! -d "$CTOOLS" ]; then rm -rf $CTOOLS.tar.gz cd $CTOOLS fi +else + cd $CTOOLS fi # If we got code from GitLab, then use the same branch that was used for # GammaLib -- libgit2 0.21.4