Skip to content

Commit 38014ce

Browse files
committed
add installing of rustup
1 parent 423c72c commit 38014ce

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ sudo systemctl stop autobahn
55

66
# Ensure Rust toolchain is configured
77
if ! command -v rustup &> /dev/null; then
8-
echo "Rustup not found. Please install Rust first."
9-
exit 1
8+
echo "Rustup not found. Installing Rust toolchain..."
9+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
10+
if [ -f "$HOME/.cargo/env" ]; then
11+
source "$HOME/.cargo/env"
12+
fi
1013
fi
1114

1215
# Set default toolchain if not already set

0 commit comments

Comments
 (0)