3 if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.05b-4; \
5 div=$(dpkg-divert --list /bin/sh)
6 if [ -n "$div" ] && [ -z "${div%%* by bash}" ]; then
11 dpkg-divert --remove /bin/sh
14 div=$(dpkg-divert --list /usr/share/man/man1/sh.1.gz)
15 if [ -n "$div" ] && [ -z "${div%%* by bash}" ]; then
17 ln -sf dash.1.gz /usr/share/man/man1/sh.1.gz
18 rm -f /usr/share/man/man1/sh.1.gz.distrib
20 dpkg-divert --remove /usr/share/man/man1/sh.1.gz
24 # the symlink is in the package now. So this should never happen ...
25 if [ ! -e /bin/sh ]; then