aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-05-30 12:16:30 -0500
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-05-30 12:16:30 -0500
commitc3e49dbd8212bafa4296f61eb892fdc704495915 (patch)
treeb11686f0c94041bdb713bf09e99d66f6785a10bd
parenta899f3b5e2f1c18d9b449154f5eb97e288d221ba (diff)
downloadcortex-m-c3e49dbd8212bafa4296f61eb892fdc704495915.tar.gz
cortex-m-c3e49dbd8212bafa4296f61eb892fdc704495915.tar.zst
cortex-m-c3e49dbd8212bafa4296f61eb892fdc704495915.zip
only install if not already installed
-rw-r--r--ci/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/install.sh b/ci/install.sh
index 5a7aabf..442e1c4 100644
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -3,8 +3,8 @@ set -ex
main() {
case $TARGET in
thumbv*-none-eabi*)
- cargo install xargo || true
- rustup component add rust-src || true
+ cargo install --list | grep xargo || cargo install xargo
+ rustup component list | grep rust-src || rustup component add rust-src
;;
esac
}