fix rust install

This commit is contained in:
CanbiZ 2025-03-05 10:39:31 +01:00
parent efdf355464
commit fe691f5839

View File

@ -37,11 +37,11 @@ VAULT=$(curl -s https://api.github.com/repos/dani-garcia/vaultwarden/releases/la
awk '{print substr($2, 2, length($2)-3) }') awk '{print substr($2, 2, length($2)-3) }')
msg_info "Installing Rust" msg_info "Installing Rust"
wget -qL https://sh.rustup.rs wget -qO rustup-init.sh https://sh.rustup.rs
$STD bash index.html -y --profile minimal $STD bash rustup-init.sh -y --profile minimal
echo 'export PATH=~/.cargo/bin:$PATH' >>~/.bashrc source "$HOME/.cargo/env"
export PATH=~/.cargo/bin:$PATH echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
rm index.html rm rustup-init.sh
msg_ok "Installed Rust" msg_ok "Installed Rust"
msg_info "Building Vaultwarden ${VAULT} (Patience)" msg_info "Building Vaultwarden ${VAULT} (Patience)"