[Wastebin] Fix Rust install

This commit is contained in:
Sam Heinz
2024-04-14 18:41:41 +10:00
parent d53c719847
commit cd45e67a0a

View File

@@ -27,10 +27,12 @@ $STD apt-get install -y --no-install-recommends \
wget
msg_ok "Installed Dependencies"
msg_info "Installing Rust (Patience)"
msg_info "Installing Rust"
$STD bash <(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs) -y
source ~/.cargo/env
msg_ok "Installed Rust"
echo 'export PATH=~/.cargo/bin:$PATH' >>~/.bashrc
export PATH=~/.cargo/bin:$PATH
rm index.html
msg_ok "Installed Rust"
msg_info "Installing Wastebin (Patience)"
RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')