From d710f4ab492ab46ebd6da6893d08bf615b618e84 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Thu, 23 Aug 2018 10:23:13 -0400 Subject: [PATCH] Fix .travis.yml bash command --- .travis.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ad0c85..215ed0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,9 @@ rust: - beta - nightly before_script: - - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - rustup component add rustfmt-preview - fi' + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi' script: - - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - cargo fmt --all -- --check - fi' + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi' - cargo build - cargo test matrix: