aboutsummaryrefslogtreecommitdiffstats
path: root/shells/fish/pkg-deinstall
blob: a3c046a0658c1cba80bc386b605f4c1b6be2832e (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

if [ "$2" = "DEINSTALL" ]; then
    /bin/cp /etc/shells /etc/shells.bak
    /usr/bin/grep -v '/usr/local/bin/fish' /etc/shells.bak >> /etc/shells
    /bin/rm -f /etc/shells.bak
fi