summarylogtreecommitdiffstats
path: root/powershell.install
diff options
context:
space:
mode:
authorKyle Sferrazza2017-07-23 17:33:58 -0400
committerKyle Sferrazza2017-07-23 17:33:58 -0400
commit7cbe3013a0641cf907963edde828a7702574dbed (patch)
tree10350aba378e2c737672d09aa38156c78383e75f /powershell.install
parent5e96f8998aa127c203991d07132f39886a199a20 (diff)
downloadaur-7cbe3013a0641cf907963edde828a7702574dbed.tar.gz
Adopted and updated to beta 4
Diffstat (limited to 'powershell.install')
-rw-r--r--powershell.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/powershell.install b/powershell.install
new file mode 100644
index 000000000000..53cc793aab94
--- /dev/null
+++ b/powershell.install
@@ -0,0 +1,11 @@
+post_install() {
+ grep -qe '^/usr/bin/powershell$' etc/shells || echo '/usr/bin/powershell' >> etc/shells
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ sed -ri '\|^/usr/bin/powershell$|d' etc/shells
+}