Skip to content

Commit 3500cbe

Browse files
committed
fix: update Rust and Buck2 installation commands for better environment setup
Signed-off-by: jl.jiang <[email protected]>
1 parent ec38edd commit 3500cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ check_rust() {
1111
echo "⚠️ Rust is not installed or 'rustc' is not available. Installing Rust..."
1212

1313
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
14-
source $HOME/.bashrc
14+
. "$HOME/.cargo/env"
1515

1616
echo "🔧 Rust installation completed."
1717
fi
@@ -28,7 +28,7 @@ check_buck2() {
2828

2929
export ARCH="$(uname -m)"
3030
curl "https://github.com/facebook/buck2/releases/download/latest/buck2-${ARCH}-unknown-linux-gnu.zst" --output /tmp/buck2-${ARCH}-unknown-linux-gnu.zst --location
31-
zstd -d /tmp/buck2-${ARCH}-unknown-linux-gnu.zst -o $HOME/.cargo/bin/buck2
31+
zstd -d /tmp/buck2-${ARCH}-unknown-linux-gnu.zst -o $HOME/.cargo/bin/buck2 -f
3232
chmod +x $HOME/.cargo/bin/buck2
3333

3434
echo "🔧 Buck2 installation completed."

0 commit comments

Comments
 (0)