
# Only execute if this is an uninstall, not an upgrade.
if [ "$1" = "0" ]; then
  CONF_DIR=$(pkg-config --variable=completionsdir bash-completion 2> /dev/null) || true
  if [ "${CONF_DIR}" != "" ]; then
    BASH_COMPLETION_DIR=$CONF_DIR
  elif [ -d /usr/share/bash-completion/completions/ ]; then
    BASH_COMPLETION_DIR=/usr/share/bash-completion/completions/
  fi