Skip to content

Commit 08e8dd7

Browse files
committed
integration_tests: abort when rustup install fails
When there is an error fetching the script and the result is empty, bash does not complain. The result is an undetected broken image. Signed-off-by: Simon Brand <simon.brand@postadigitale.de>
1 parent b621bd5 commit 08e8dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tss-esapi/tests/Dockerfile-ubuntu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ghcr.io/tpm2-software/ubuntu-20.04:latest AS base
22

33
FROM base AS rust-toolchain
44
# Install Rust toolchain
5-
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
5+
RUN (curl https://sh.rustup.rs -sSf || exit 1) | bash -s -- -y
66
ENV PATH="/root/.cargo/bin:${PATH}"
77

88
FROM rust-toolchain AS tpm2-tss

0 commit comments

Comments
 (0)