Skip to content

Commit a022619

Browse files
committed
Fix Rustup Curl
1 parent 24a5442 commit a022619

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

install/linkwarden-install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ $STD npm install -g yarn
3737
msg_ok "Installed Node.js/Yarn"
3838

3939
msg_info "Installing Rust"
40-
curl -fsSL https://sh.rustup.rs -O
41-
$STD bash index.html -y --profile minimal
42-
echo 'export PATH=~/.cargo/bin:$PATH' >>~/.bashrc
43-
export PATH=~/.cargo/bin:$PATH
44-
rm index.html
40+
curl -fsSL https://sh.rustup.rs -o rustup-init.sh
41+
$STD bash rustup-init.sh -y --profile minimal
42+
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
43+
export PATH="$HOME/.cargo/bin:$PATH"
44+
rm rustup-init.sh
4545
$STD cargo install monolith
4646
msg_ok "Installed Rust"
4747

install/vaultwarden-install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ VAULT=$(curl -fsSL https://api.github.com/repos/dani-garcia/vaultwarden/releases
3434
awk '{print substr($2, 2, length($2)-3) }')
3535

3636
msg_info "Installing Rust"
37-
curl -fsSL https://sh.rustup.rs -O
38-
$STD bash index.html -y --profile minimal
39-
echo 'export PATH=~/.cargo/bin:$PATH' >>~/.bashrc
40-
export PATH=~/.cargo/bin:$PATH
41-
rm index.html
37+
curl -fsSL https://sh.rustup.rs -o rustup-init.sh
38+
$STD bash rustup-init.sh -y --profile minimal
39+
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
40+
export PATH="$HOME/.cargo/bin:$PATH"
41+
rm rustup-init.sh
4242
msg_ok "Installed Rust"
4343

4444
msg_info "Building Vaultwarden ${VAULT} (Patience)"

0 commit comments

Comments
 (0)