dotfiles/scripts/rust.sh

21 lines
338 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-08-04 18:33:19 +00:00
function install () {
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2021-08-17 05:08:52 +00:00
printf "\n\n"
rustc --version
cargo --version
2021-08-04 18:33:19 +00:00
}
function uninstall () {
rustup self uninstall
}
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ]; then
uninstall
else
echo "Only install and uninstall"
fi