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