mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 19:22:19 +08:00
22 lines
793 B
Bash
22 lines
793 B
Bash
#!/usr/bin/env bash
|
||
ver="2022.12.08"
|
||
changeLog="一键安装rust,加载官方脚本"
|
||
clear
|
||
echo "#############################################################"
|
||
echo -e "# ${YELLOW}融合怪测评脚本${PLAIN} #"
|
||
echo "# 版本:$ver #"
|
||
echo "# 更新日志:$changeLog#"
|
||
echo -e "# ${GREEN}作者${PLAIN}: spiritlhl #"
|
||
echo "#############################################################"
|
||
echo ""
|
||
sudo apt update -y
|
||
sudo apt upgrade -y
|
||
sudo apt install curl build-essential gcc make -y
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||
source "$HOME/.cargo/env"
|
||
source "$HOME/.profile"
|
||
rustup update
|
||
cargo --version
|
||
rustc --version
|
||
rustdoc --version
|