diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/fish/fish.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/fish/fish.install')
-rw-r--r-- | community/fish/fish.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/community/fish/fish.install b/community/fish/fish.install new file mode 100644 index 000000000..c3f89cd84 --- /dev/null +++ b/community/fish/fish.install @@ -0,0 +1,15 @@ +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 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + echo -ne "updating /etc/shells... \n" + sed -i '/^\/usr\/bin\/fish/d' /etc/shells +} |