#!/bin/sh

post_install() {
	grep -qe '^/bin/pwsh$' etc/shells || echo '/bin/pwsh' >> etc/shells
	grep -qe '^/usr/bin/pwsh$' etc/shells || echo '/usr/bin/pwsh' >> etc/shells
}

post_upgrade() {
	post_install
}

pre_remove() {
	sed -i -r '/^(\/usr)?\/bin\/pwsh$/d' etc/shells
}
