update_badwolf.sh 465 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. $su apt-get install -y mandoc shellcheck flawfinder libxml2-dev libwebkit2gtk-4.1-dev gettext
  11. mkdir -p ~/src
  12. cd ~/src || return
  13. if [ ! -d badwolf ]; then
  14. git clone https://hacktivis.me/git/badwolf.git
  15. cd badwolf || return
  16. else
  17. cd badwolf || return
  18. git pull
  19. fi
  20. ./configure
  21. make
  22. $su make install