ds323x-rs/ci/install.sh

14 lines
254 B
Bash
Raw Normal View History

2018-10-28 09:31:28 +00:00
set -euxo pipefail
main() {
rustup component add rust-src
SYSROOT=$(rustc --print sysroot)
if [[ ! "$SYSROOT" =~ "$TARGET" ]]; then
rustup target add $TARGET
else
echo "Target $TARGET is already installed"
fi
}
main