install_quakeinjector.sh 438 B

1234567891011121314151617
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. mkdir -p ~/games
  7. cd ~/games || return
  8. mkdir -p quakeinjector
  9. cd ~/games/quakeinjector || return
  10. mkdir -p bin
  11. mkdir -p downloads
  12. cd ~/games/quakeinjector/bin || return
  13. curl -O -L $(curl -s https://api.github.com/repos/hrehfeld/QuakeInjector/releases/latest | jq -r ".assets[] | select(.name | test(\"quakeinjector\")) | .browser_download_url")
  14. unzip quakeinjector*.zip