Skip to content

Commit

Permalink
Create install_ospect.sh
Browse files Browse the repository at this point in the history
Added the installation script
  • Loading branch information
Coder-Harshit committed Jun 14, 2024
1 parent 68da07f commit 57210ce
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions install_ospect.sh
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit 57210ce

Please sign in to comment.