updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / oh-git / oh.install
blob4302c31706e56a371d4388cb5a1ff68aa77c82f9
1 post_install() {
2   if [ ! "`grep /usr/bin/oh etc/shells`" ]; then
3     echo "updating /etc/shells... done."
4     sed -i "s|/bin/bash|/bin/bash\n/usr/bin/oh|" etc/shells
5   fi
8 post_upgrade() {
9   post_install $1
12 pre_remove() {
13   echo -ne "updating /etc/shells... \n"
14   sed -i '/^\/usr\/bin\/oh/d' /etc/shells
17 op=$1
18 shift
20 $op $*