summaryrefslogtreecommitdiff
path: root/data/zsh/_metadata/postinst
blob: 70fa1d460001128a5a82e10fa723c2a9b1206b62 (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 100 || true
        ;;
    *)
        exit 0
        ;;
esac