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