repo.or.cz
/
ArchLinux
/
community.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
upgpkg: ufw 0.36.2-1
[ArchLinux/community.git]
/
fish
/
trunk
/
fish.install
blob
d14a4fefafbb23041f2b7659aad3bb60bacc8ebc
1
post_install() {
2
grep -qe '^/usr/bin/fish$' etc/shells || echo '/usr/bin/fish' >> etc/shells
3
grep -qe '^/bin/fish$' etc/shells || echo '/bin/fish' >> etc/shells
4
}
5
6
post_upgrade() {
7
post_install
8
}
9
10
pre_remove() {
11
sed -ri -e '\|^/usr/bin/fish$|d' -e '\|^/bin/fish$|d' etc/shells
12
}
13
14
# vim:set ts=2 sw=2 et: