1 2 3 4 5 6 7 8 9 10 11 12 13
post_install() { echo ":: Adding hilbish to /etc/shells..." grep -qe '^/usr/bin/hilbish$' /etc/shells || echo '/usr/bin/hilbish' >> /etc/shells } post_upgrade() { post_install } pre_remove() { echo ":: Removing hilbish from /etc/shells..." sed -ri -e '\|^/usr/bin/hilbish$|d' /etc/shells }