Skip to content

Commit

Permalink
fix || issues in RUN chain
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Sep 13, 2024
1 parent 86b2a0b commit 80e337c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80e337c

Please sign in to comment.