Skip to content

Commit

Permalink
Merge pull request #1267 from sdr-enthusiasts/kx1t-patch-1
Browse files Browse the repository at this point in the history
fix `||` issues in RUN chain
  • Loading branch information
fredclausen authored Sep 13, 2024
2 parents e4e4797 + 57b5136 commit 2e332e1
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 @@ -98,8 +98,8 @@ RUN set -x && \
# it is in the format ACARS Hub: v0.0.0 Build 0000
# and we want to extract the version number and echo it out to /acarshub_version
# get the acarshub version from the js file along with the build number
ACARS_VERSION=$(grep -oP 'ACARS Hub: v\K[0-9\.]+' /webapp/static/js/acarshub.*.js) || $(echo "") && \
ACARS_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) || $(echo "") && \
{ ACARS_VERSION=$(grep -oP 'ACARS Hub: v\K[0-9\.]+' /webapp/static/js/acarshub.*.js) || $(echo ""); } && \
{ ACARS_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) || $(echo ""); } && \
echo "ACARS Hub: v${ACARS_VERSION} Build ${ACARS_BUILD}" && \
# echo the version and build number to /acarshub_version
# check and see if we have a build number and version. If not, set it to 0
Expand Down

0 comments on commit 2e332e1

Please sign in to comment.