diff options
author | Luca Weiss | 2017-10-08 11:21:25 +0200 |
---|---|---|
committer | Luca Weiss | 2017-10-08 11:21:25 +0200 |
commit | 63016967458261fd90b9b00c5de7c71973c01a74 (patch) | |
tree | 7bd7265dee47a84bcc2fb93047090a247de0bbd5 /ion-git.install | |
parent | da3a2e07bd043798664cc4812af3ee73e8865516 (diff) | |
download | aur-63016967458261fd90b9b00c5de7c71973c01a74.tar.gz |
Add ion to /etc/shells
Diffstat (limited to 'ion-git.install')
-rw-r--r-- | ion-git.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ion-git.install b/ion-git.install new file mode 100644 index 000000000000..5113df6f145e --- /dev/null +++ b/ion-git.install @@ -0,0 +1,13 @@ +post_install() { + grep -qe '^/usr/bin/ion$' etc/shells || echo '/usr/bin/ion' >> etc/shells +} + +post_upgrade() { + post_install +} + +pre_remove() { + sed -ri '\|^/usr/bin/ion$|d' etc/shells +} + +# vim:set ts=2 sw=2 et: |