Skip to content

Commit

Permalink
Docker Library - account for main branch - fix - logic invert
Browse files Browse the repository at this point in the history
The logic around the main branch was inverted.

If there isn't branch by the name of the release, use main.
  • Loading branch information
grooverdan committed Aug 27, 2024
1 parent 815ed8c commit 51b5f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docker-library-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 51b5f10

Please sign in to comment.