packages/fish/fish.install

15 lines
312 B
Plaintext

post_install() {
grep -qe '^/usr/bin/fish$' etc/shells || echo '/usr/bin/fish' >> etc/shells
grep -qe '^/bin/fish$' etc/shells || echo '/bin/fish' >> etc/shells
}
post_upgrade() {
post_install
}
pre_remove() {
sed -ri -e '\|^/usr/bin/fish$|d' -e '\|^/bin/fish$|d' etc/shells
}
# vim:set ts=2 sw=2 et: