summaryrefslogtreecommitdiff
path: root/community/fish/fish.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/fish/fish.install')
-rw-r--r--community/fish/fish.install8
1 files changed, 2 insertions, 6 deletions
diff --git a/community/fish/fish.install b/community/fish/fish.install
index c3f89cd84..765006f95 100644
--- a/community/fish/fish.install
+++ b/community/fish/fish.install
@@ -1,15 +1,11 @@
post_install() {
- if [ ! "`grep /usr/bin/fish etc/shells`" ]; then
- echo "updating /etc/shells... done."
- sed -i "s|/bin/bash|/bin/bash\n/usr/bin/fish|" etc/shells
- fi
+ grep -q '/usr/bin/zsh' etc/shells || echo '/usr/bin/zsh' >> etc/shells
}
post_upgrade() {
- post_install $1
+ post_install
}
pre_remove() {
- echo -ne "updating /etc/shells... \n"
sed -i '/^\/usr\/bin\/fish/d' /etc/shells
}