From 6755d27b89e14de7a4f31bb5323c090fa4661093 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Tue, 29 Jun 2021 17:33:39 +0200 Subject: [PATCH] Use git branch if not running in CI --- install/install-openappstack.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/install-openappstack.sh b/install/install-openappstack.sh index db3644970..2071c1237 100755 --- a/install/install-openappstack.sh +++ b/install/install-openappstack.sh @@ -9,6 +9,8 @@ flux install \ # get current git branch name branch=$CI_COMMIT_REF_NAME +[ -z "$branch" ] && branch=$(git rev-parse --abbrev-ref HEAD) + echo "Tracking branch $branch for https://open.greenhost.net/openappstack/openappstack flux repo" flux create source git openappstack \ -- GitLab