03.install_paru.sh 312 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. cloneRepo() {
  7. mkdir -p ~/aur
  8. cd ~/aur || return
  9. if [ ! -d "$1" ]; then
  10. git clone https://aur.archlinux.org/"$1".git
  11. cd "$1" || return
  12. else
  13. cd "$1" || return
  14. git pull
  15. fi
  16. }
  17. cloneRepo paru-bin
  18. makepkg -sic --noconfirm