summarylogtreecommitdiffstats
path: root/hilbish.install
diff options
context:
space:
mode:
authorLuis Martinez2022-03-13 13:29:21 -0500
committerLuis Martinez2022-03-13 13:29:21 -0500
commit0b1243f8a3c730e54fd5e48867f3ee26a180ba6a (patch)
tree2401786b93a094c8a765097a4404a15d9cf11ebf /hilbish.install
parentfab59b220128ee9d0be0946d554cfbd4967cd8fa (diff)
downloadaur-0b1243f8a3c730e54fd5e48867f3ee26a180ba6a.tar.gz
fix and update package
Diffstat (limited to 'hilbish.install')
-rw-r--r--hilbish.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/hilbish.install b/hilbish.install
new file mode 100644
index 000000000000..cbb25de224ba
--- /dev/null
+++ b/hilbish.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -qe '^/usr/bin/hilbish$' /etc/shells || echo '/usr/bin/hilbish' >> /etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -ri -e '\|^/usr/bin/hilbish$|d' /etc/shells
+} \ No newline at end of file