summaryrefslogtreecommitdiff
path: root/community/fish/fish.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/fish/fish.install
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/fish/fish.install')
-rw-r--r--community/fish/fish.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/fish/fish.install b/community/fish/fish.install
new file mode 100644
index 000000000..49a65ad82
--- /dev/null
+++ b/community/fish/fish.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -q '/usr/bin/fish' etc/shells || echo '/usr/bin/fish' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -i '/^\/usr\/bin\/fish/d' /etc/shells
+}