From 80e337cfc0abe680f8e8ed8e4637207587f7c960 Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:13:20 -0400 Subject: [PATCH] fix `||` issues in `RUN` chain --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 18f4d8f..fb04dce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN \ # Add Container Version: cd / && \ branch="##BRANCH##" && \ - [[ "${branch:0:1}" == "#" ]] && branch="main" || true && \ + { [[ "${branch:0:1}" == "#" ]] && branch="main" || true; } && \ git clone --depth=1 -b $branch https://github.com/sdr-enthusiasts/docker-vesselalert.git && \ cd docker-vesselalert && \ echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(git rev-parse --short HEAD)_$(git branch --show-current)" > /.CONTAINER_VERSION