diff --git a/install_ospect.sh b/install_ospect.sh new file mode 100644 index 0000000..d9e8c25 --- /dev/null +++ b/install_ospect.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Install Rust and Cargo if not already installed +if ! command -v rustc &> /dev/null; then + echo "Rust is not installed. Installing Rust..." + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env +fi + +# Clone the OSpect repository +echo "Cloning OSpect repository..." +git clone https://github.com/yourusername/OSpect.git +cd OSpect + +# Build and install OSpect +echo "Building and installing OSpect..." +cargo build --release +cargo install --path . + +# Add OSpect to PATH +export PATH="$HOME/.cargo/bin:$PATH" + +# Run OSpect help command +echo "Running OSpect help command..." +ospect --help + +echo "Installation complete! You can now use the 'ospect' command."