01.configure_pacman_settings.sh 674 B

1234567891011121314151617181920
  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 cp /etc/pacman.conf /etc/pacman.conf.bak
  11. $su cat /etc/pacman.conf | $su sed -e "s/ILoveCandy/#ILoveCandy/" | $su tee /etc/pacman.conf.edited
  12. $su mv /etc/pacman.conf.edited /etc/pacman.conf
  13. $su cat /etc/pacman.conf | $su sed -e "s/#VerbosePkgLists/VerbosePkgLists/" | $su tee /etc/pacman.conf.edited
  14. $su mv /etc/pacman.conf.edited /etc/pacman.conf
  15. $su cat /etc/pacman.conf | $su sed -e "s/#ParallelDownloads/ParallelDownloads/" | $su tee /etc/pacman.conf.edited
  16. $su mv /etc/pacman.conf.edited /etc/pacman.conf