#!/bin/bash set -e if command -v rustup &>/dev/null || [ -f "$HOME/.cargo/env" ]; then rustup update else curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh sh /tmp/rustup.sh -y rm /tmp/rustup.sh fi . "$HOME/.cargo/env"