Skip to content

Commit 9361d90

Browse files
committed
make scratch-run executable
1 parent 46e3ebc commit 9361d90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

judge/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ RUN apt-get update && \
2626

2727
RUN if [ "$(arch)" = x86_64 ]; then SCRATCH_ARCH=amd64; else SCRATCH_ARCH=arm64; fi && \
2828
SCRATCH_VERSION=$(curl -sL "https://api.github.com/repos/VNOI-Admin/scratch-run/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') && \
29-
curl -sSL https://github.com/VNOI-Admin/scratch-run/releases/download/${SCRATCH_VERSION}/scratch-run_${SCRATCH_VERSION}_linux_${SCRATCH_ARCH}.zip | bsdtar -xvf- -C /usr/bin
29+
curl -sSL https://github.com/VNOI-Admin/scratch-run/releases/download/${SCRATCH_VERSION}/scratch-run_${SCRATCH_VERSION}_linux_${SCRATCH_ARCH}.zip | bsdtar -xvf- -C /usr/bin && \
30+
chmod +x /usr/bin/scratch-run
3031

3132
# RUN mkdir /ScratchCLI && cd /ScratchCLI && \
3233
# curl -L https://github.com/cuom1999/ScratchCLI/archive/master.tar.gz | tar -xz --strip-components=1 && \

0 commit comments

Comments
 (0)