summarylogtreecommitdiffstats
path: root/powershell.install
blob: d337b39409b1d8a5190a792f55ef5bd18ad57740 (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
  grep -qe '^/usr/bin/pwsh$' etc/shells || echo '/usr/bin/pwsh' >> etc/shells
}

post_upgrade() {
  post_install
}

pre_remove() {
  sed -ri '\|^/usr/bin/pwsh$|d' etc/shells
}