Skip to content

Commit

Permalink
Manages to download abrute source code if it is not already present, …
Browse files Browse the repository at this point in the history
…before installing
  • Loading branch information
baptistecolin committed Oct 9, 2017
1 parent fdb0f6c commit b7f025c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,24 @@ else
echo "Aescrypt installed"
fi

cargo build --release
sudo cp target/release/abrute /usr/bin
# Checking for the existence of source files
if [ -d src ] && [ -d .git ];
then
# The source files are already there. We can build and install Abrute.
cargo build --release
sudo cp target/release/abrute /usr/bin
else
# Downloading the source files
wget https://github.com/danielpclark/abrute/archive/master.zip
unzip master.zip
cd abrute-master
cargo build --release
sudo cp target/release/abrute /usr/bin

# Cleaning
rm master.zip
rm -r abrute-master/
fi

echo "Thank you for installing Abrute. Enjoy !"

0 comments on commit b7f025c

Please sign in to comment.