alpha repo init
This commit is contained in:
@@ -474,6 +474,28 @@ install_dependencies() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install Rust compiler (for TUI)
|
||||
echo " Installing Rust compiler..."
|
||||
if ! command -v rustc &>/dev/null; then
|
||||
# Install rustup
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
||||
source "$HOME/.cargo/env" || {
|
||||
# If source fails, add to PATH manually
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
}
|
||||
fi
|
||||
|
||||
# Verify Rust installation
|
||||
if command -v rustc &>/dev/null || [ -f "$HOME/.cargo/bin/rustc" ]; then
|
||||
if [ -f "$HOME/.cargo/bin/rustc" ]; then
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
fi
|
||||
RUST_VERSION=$(rustc --version 2>/dev/null | awk '{print $2}' || echo "installed")
|
||||
echo -e "${GREEN} ✓ Rust $RUST_VERSION installed${NC}"
|
||||
else
|
||||
echo -e "${YELLOW}Warning: Rust installation may need manual setup${NC}"
|
||||
fi
|
||||
|
||||
# Install additional utilities
|
||||
echo " Installing additional utilities..."
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
|
||||
|
||||
Reference in New Issue
Block a user