diff options
author | Huon Wilson <1203825+huonw@users.noreply.github.com> | 2018-12-05 00:26:23 +1100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-12-04 08:26:23 -0500 |
commit | 803136cc2719cc4a5baf562877e01938267a6bd9 (patch) | |
tree | e4ae563a847e6f2ad967d1ff4cd29c12cb1bb491 | |
parent | bdcc6bf676a1ed17eae68257bfa4726a1f0ec068 (diff) | |
download | platform_external_rust_crates_byteorder-803136cc2719cc4a5baf562877e01938267a6bd9.tar.gz platform_external_rust_crates_byteorder-803136cc2719cc4a5baf562877e01938267a6bd9.tar.bz2 platform_external_rust_crates_byteorder-803136cc2719cc4a5baf562877e01938267a6bd9.zip |
ci: fix [ syntax to run cross CI as cross compilation. (#135)
Previously the [ was just failing with:
+[ ! z mips64-unknown-linux-gnuabi64 ]
ci/script.sh: 7: [: z: unexpected operator
and thus falling through to the `cargo` version.
Fixes #134
-rwxr-xr-x | ci/script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/script.sh b/ci/script.sh index bc48672..596e2d5 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -4,7 +4,7 @@ set -ex # Setup some variables for executing cargo commands. # Things are a little different if we're testing with cross. -if [ ! z "$CROSS_TARGET" ]; then +if [ ! -z "$CROSS_TARGET" ]; then rustup target add "$CROSS_TARGET" cargo install cross --force export CARGO_CMD="cross" |