summaryrefslogtreecommitdiff
path: root/data/zsh/_metadata/postinst
blob: 9787bdb5aa04ce47b34979bea4e1db575bd56f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/zsh

set -e

if [ ! -e /bin/sh ]; then
    ln -s zsh /bin/sh
fi

case "$1" in
    abort-remove|configure)
        dpkg-divert --quiet --local --divert /bin/sh.distrib /bin/sh
        update-alternatives --quiet --install /bin/sh sh /bin/zsh 60 || true
        ;;
    *)
        exit 0
        ;;
esac