From fb642810613eab3f14a1199c651a4a19d53d706a Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:11:14 -0400 Subject: [PATCH] fix `||` issues in `RUN` chain --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3328db..3e9ee09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] \ No newline at end of file +SHELL ["/bin/bash", "-o", "pipefail", "-c"]