mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 04:41:00 +01:00
add gsh-bin.install file
This commit is contained in:
parent
850f059e19
commit
7c78f2d02f
1 changed files with 14 additions and 0 deletions
14
gsh-bin.install
Normal file
14
gsh-bin.install
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
post_install() {
|
||||
grep -qe '^/bin/gsh$' etc/shells || echo '/bin/gsh' >> etc/shells
|
||||
grep -qe '^/usr/bin/gsh$' etc/shells || echo '/usr/bin/gsh' >> etc/shells
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
sed -i -r '/^(\/usr)?\/bin\/gsh$/d' etc/shells
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue