diff options
author | Kyle Sferrazza | 2017-07-21 22:28:02 -0400 |
---|---|---|
committer | Kyle Sferrazza | 2017-07-21 22:28:02 -0400 |
commit | 4b80425e318a8330c3d70522b5a4618ade0a9146 (patch) | |
tree | 703b5fd589f4b1b3223fe7a517fdd30d5f2d62ea /powershell.install | |
parent | 43bd3fb17d7710ff36cd2942657cda5b4cd6bb27 (diff) | |
download | aur-4b80425e318a8330c3d70522b5a4618ade0a9146.tar.gz |
powershell is now added to /etc/shells
Diffstat (limited to 'powershell.install')
-rw-r--r-- | powershell.install | 11 |
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 +} |