diff options
author | root <root@rshg054.dnsready.net> | 2012-08-02 00:01:47 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-02 00:01:47 +0000 |
commit | e8f5b2ea6983e7a97c1640e9e211f356b8b5d21b (patch) | |
tree | f454ed3270ca5f6171ffc277c784aaecf9ddb6d1 /community/fish/fish.install | |
parent | a71961a43ef48f47d3575915f63099308a18a263 (diff) |
Thu Aug 2 00:01:47 UTC 2012
Diffstat (limited to 'community/fish/fish.install')
-rw-r--r-- | community/fish/fish.install | 8 |
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 } |