summarylogtreecommitdiffstats
path: root/aurto.install
blob: 5612664c69e3b1714a3e97a936d3366fa9941b23 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
set -eu

pre_remove() {
  # If pacman.conf is still configured to use aurto warn that removing the package will break pacman
  if grep -q '^Include = /etc/pacman.d/aurto$' /etc/pacman.conf; then
    echo -en "\\e[33mWarning: Aurto repo is still configured. "
    echo -e "Remove \"Include = /etc/pacman.d/aurto\" from /etc/pacman.conf\\e[39m" >&2
  fi
}