mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 12:41:55 +01:00
14 lines
272 B
Bash
14 lines
272 B
Bash
#!/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
|
|
}
|