summarylogtreecommitdiffstats
path: root/hilbish.install
blob: 31275cd664e49f569c92ad64e6e0b3ea1e208133 (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
}

post_remove()  {
  echo ":: Removing hilbish from /etc/shells..."
  sed -ri -e '\|^/usr/bin/hilbish$|d' /etc/shells
}