repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git]
/
oh-git
/
oh.install
blob
4302c31706e56a371d4388cb5a1ff68aa77c82f9
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
6
}
7
8
post_upgrade() {
9
post_install $1
10
}
11
12
pre_remove() {
13
echo -ne "updating /etc/shells... \n"
14
sed -i '/^\/usr\/bin\/oh/d' /etc/shells
15
}
16
17
op=$1
18
shift
19
20
$op $*
21