build-advcpmv.sh 509 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. if (command -v cpg && command -v mvg) >/dev/null ; then
  4. echo "Advanced commands 'cpg' and 'mvg' are already installed!"
  5. else
  6. package-manager.sh install patch make gcc
  7. curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh \
  8. --create-dirs -o ./advcpmv/install.sh && (cd advcpmv && sh install.sh)
  9. sudo mv ./advcpmv/advcp /usr/local/bin/cpg
  10. sudo mv ./advcpmv/advmv /usr/local/bin/mvg
  11. rm -rf ./advcpmv
  12. fi