OSDN Git Service
(root)
/
joborun
/
jobcore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
upg
[joborun/jobcore.git]
/
zsh
/
zsh.install
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
}