Skip to content

Commit

Permalink
fix : setup install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lshtar13 committed Sep 3, 2023
1 parent b336e29 commit 29d23d9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
sudo apt update

# Install prerequisites
sudo apt install -y git cmake build-essential
sudo apt install -y git cmake g++ pkg-config libkrb5-dev libssl-dev python3

# # Clone the repository
# git clone https://github.com/EdgeCrafters/ejp-t.git
Expand All @@ -32,11 +32,17 @@ make
# Create a symlink to the application in /usr/local/bin
# This will make it easier to run the application from anywhere.
# Replace "path_to_your_executable" with the actual path.
sudo ln -s "$(pwd)/path_to_your_executable" /usr/local/bin/ejp-t

# Add EJP-T as an environment variable
echo 'export EJP_T="/usr/local/bin/ejp-t"' >> ~/.bashrc
source ~/.bashrc
if [[ $SHELL == *"bash"* ]]; then
echo "export PATH=PATH:$(pwd)/src" >> ~/.bashrc
source ~/.bashrc
elif [[ $SHELL == *"zsh"* ]]; then
echo "export EJP_T=PATH:$(pwd)/src" >> ~/.zshrc
source ~/.zshrc
else
echo "Unsupported shell. Please add manually."
fi

echo "Installation completed successfully."

0 comments on commit 29d23d9

Please sign in to comment.