summarylogtreecommitdiffstats
path: root/hilbish.install
blob: 7e4825f3d6f1c2e956c3e530a9ca0b247860a014 (plain)
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
}