Skip to content

Commit

Permalink
add support for installer being run by root - handy for kali VM :p
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Dec 17, 2019
1 parent 9c316f4 commit 499c978
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ curl -s -L -H "Accept: application/octet-stream" "${asset}" --output ./scout
echo "Installing scout..."
chmod +x ./scout
installdir="${HOME}/bin/"
if [ "$EUID" -ne 0 ]; then
installdir="/usr/local/bin/"
fi
mkdir -p $installdir
mv ./scout "${installdir}/scout"
which scout &> /dev/null || (echo "Please add ${installdir} to your PATH to complete installation!" && exit 1)
Expand Down

0 comments on commit 499c978

Please sign in to comment.