From 51b5f102f8252de10426064a80dfbc1fbf36e17f Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 27 Aug 2024 10:24:42 +1000 Subject: [PATCH] Docker Library - account for main branch - fix - logic invert The logic around the main branch was inverted. If there isn't branch by the name of the release, use main. --- scripts/docker-library-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker-library-build.sh b/scripts/docker-library-build.sh index 43f4cc45..c1a45882 100755 --- a/scripts/docker-library-build.sh +++ b/scripts/docker-library-build.sh @@ -39,7 +39,7 @@ if [[ $branch =~ ^preview ]]; then else container_tag=$master_branch fi -if [ -d "mariadb-docker/$master_branch" ]; then +if [ ! -d "mariadb-docker/$master_branch" ]; then branch=main fi # Container tags must be lower case.