-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |