From 206f55e82350d6972de05f4c6e46b311ebb4f448 Mon Sep 17 00:00:00 2001 From: Markus Westerlind Date: Sun, 3 Oct 2021 23:14:22 +0200 Subject: [PATCH] Fix cross install --- scripts/install_cross.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/install_cross.sh b/scripts/install_cross.sh index 748ad9a9e8..fd84a50322 100755 --- a/scripts/install_cross.sh +++ b/scripts/install_cross.sh @@ -1,20 +1,13 @@ set -ex main() { - local target= - if [ $TRAVIS_OS_NAME = linux ]; then - target=x86_64-unknown-linux-musl - sort=sort - else - target=x86_64-apple-darwin - sort=gsort # for `sort --sort-version`, from brew's coreutils. - fi + local target=x86_64-unknown-linux-musl # This fetches latest stable release local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \ | cut -d/ -f3 \ | grep -E '^v[0.1.0-9.]+$' \ - | $sort --version-sort \ + | sort --version-sort \ | tail -n1) curl -LSfs https://japaric.github.io/trust/install.sh | \ sh -s -- \