summaryrefslogtreecommitdiffhomepage
path: root/ci/ci-rust-script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/ci-rust-script.sh')
-rwxr-xr-xci/ci-rust-script.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/ci/ci-rust-script.sh b/ci/ci-rust-script.sh
index ba4f93e131..90042307ce 100755
--- a/ci/ci-rust-script.sh
+++ b/ci/ci-rust-script.sh
@@ -24,9 +24,12 @@ if [ "${RUST_TOOLCHAIN_CHANNEL}" != "nightly" ]; then
fi
if [ "${RUST_TOOLCHAIN_CHANNEL}" = "nightly" ]; then
- rustup component add rustfmt-preview;
- rustfmt --version;
- cargo fmt -- --check --unstable-features;
+ if rustup component add rustfmt-preview; then
+ rustfmt --version;
+ cargo fmt -- --check --unstable-features;
+ else
+ echo "There seems to not be any rustfmt for the current nighly. Skipping formatting check!"
+ fi
fi
if ! git diff-index --quiet HEAD; then