mirror of https://github.com/aldy505/dotfiles.git
21 lines
338 B
Bash
Executable File
21 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function install () {
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
printf "\n\n"
|
|
rustc --version
|
|
cargo --version
|
|
}
|
|
|
|
function uninstall () {
|
|
rustup self uninstall
|
|
}
|
|
|
|
if [ "$1" == "install" ]; then
|
|
install
|
|
elif [ "$1" == "uninstall" ]; then
|
|
uninstall
|
|
else
|
|
echo "Only install and uninstall"
|
|
fi
|