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 cb05840 commit fb64281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN set -x && \
"${KEPT_PACKAGES[@]}" && \
#
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-aprs-tracker.git && \
cd docker-aprs-tracker && \
echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(git rev-parse --short HEAD)_$(git branch --show-current)" > /.CONTAINER_VERSION
Expand Down Expand Up @@ -89,4 +89,4 @@ EXPOSE 2947
# Add healthcheck
# HEALTHCHECK --start-period=60s --interval=600s --timeout=60s CMD /healthcheck/healthcheck.sh

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

0 comments on commit fb64281

Please sign in to comment.