1 2 3 4 5 6 7 8 9 10 11 12 13 14
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: