Skip to content

Commit

Permalink
Fix symlinks for older versions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet authored Nov 3, 2024
1 parent 0967973 commit 1acfe5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ RUN curl -sSOL https://github.com/koalaman/shellcheck/releases/download/v0.10.0/
ENV VERSION=0.1.81

# Install /usr/local/bin/ys (the YAMLScript interpreter binary):
RUN curl -s https://yamlscript.org/install | BIN=1 bash \
RUN curl -s https://yamlscript.org/install | BIN=1 VERSION=$VERSION bash \
&& curl -s https://yamlscript.org/install | BIN=1 VERSION=0.1.80 bash \
&& rm -f \
/usr/local/bin/ys \
/usr/local/bin/ys-0 \
/usr/local/bin/ys-sh-$VERSION \
/usr/local/bin/ys-sh-0.1.80 \
&& true

RUN true \
&& ln -s ys-$VERSION /usr/local/bin/ys-0.1.79 \
&& ln -s ys-$VERSION /usr/local/bin/ys-0.1.76 \
&& ln -s ys-$VERSION /usr/local/bin/ys-0.1.75 \
&& ln -s ys-0.1.80 /usr/local/bin/ys-0.1.79 \
&& ln -s ys-0.1.80 /usr/local/bin/ys-0.1.76 \
&& ln -s ys-0.1.80 /usr/local/bin/ys-0.1.75 \
&& true

ENV PATH="/opt/test-runner/bin:$PATH"
Expand Down

0 comments on commit 1acfe5b

Please sign in to comment.