summarylogtreecommitdiffstats
path: root/zash.install
blob: ac9327cc469f45081cc4c426c1d60ce9204a2e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

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

post_upgrade() {
  post_install
}

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