repo.or.cz
/
arch-packages.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
archrelease: copy trunk to extra-x86_64
[arch-packages.git]
/
zsh
/
trunk
/
zsh.install
blob
c9bd5b6633eabfae5c53eae42aee06583c089c8c
1
post_install() {
2
grep -qe '^/bin/zsh$' etc/shells || echo '/bin/zsh' >> etc/shells
3
grep -qe '^/usr/bin/zsh$' etc/shells || echo '/usr/bin/zsh' >> etc/shells
4
}
5
6
post_upgrade() {
7
post_install
8
}
9
10
pre_remove() {
11
sed -i -r '/^(\/usr)?\/bin\/zsh$/d' etc/shells
12
}