]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Sync "git for-each-ref" output parsing with other Dockerfile.deps (#4584)
authorMax Khon <fjoe@samodelkin.net>
Mon, 27 Jun 2022 12:34:58 +0000 (15:34 +0300)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 12:34:58 +0000 (07:34 -0500)
scripts/docker/build-centos7/Dockerfile.deps

index b940f5cb8451018bf91d5e33adef7877a9db86e7..193891b2a16ec81831a7d2b1e4dcdef6f68311d0 100644 (file)
@@ -120,7 +120,7 @@ RUN git clone --depth 1 --no-single-branch -b ${branch} ${source}
 #  Install build dependencies for all branches from v3 onwards
 #
 WORKDIR freeradius-server
-RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master)$");\
+RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master|${branch})$" | sort -u);\
     do \
         echo "BRANCH $i"; \
         git checkout $i; \