Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 52.14.223.136
Current Path : /var/lib/dpkg/info/ |
| Current File : /var/lib/dpkg/info/bash-completion.preinst |
#!/bin/sh
set -e
case "$1" in
install|upgrade)
if [ -e /usr/share/doc/bash/completion-contrib ]; then
rm -rf /usr/share/doc/bash/completion-contrib
fi
# let's remove old bash-completion conffiles
for f in $(dpkg-query -W -f='${Conffiles}\n' bash-completion | grep bash_completion.d | cut -d\ -f2); do
dpkg-maintscript-helper rm_conffile $f 1:1.3-1 -- "$@"
done
if dpkg --compare-versions "$2" lt-nl 1:2.0-1 &&
dpkg --compare-versions "$2" ge 1:1.99-2 &&
[ -L /etc/bash_completion ] &&
[ "$(readlink /etc/bash_completion)" = \
/usr/share/bash-completion/bash_completion ]; then
rm -f /etc/bash_completion
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0
|