summaryrefslogtreecommitdiff
path: root/debian/bash.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/bash.postrm')
-rw-r--r--debian/bash.postrm15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/bash.postrm b/debian/bash.postrm
new file mode 100644
index 0000000..cbfcc30
--- /dev/null
+++ b/debian/bash.postrm
@@ -0,0 +1,15 @@
+#! /bin/sh -e
+
+if [ "$1" = "purge" ]; then
+ rm -f /etc/bash_completion
+ rmdir --ignore-fail-on-non-empty /etc/bash_completion.d
+fi
+
+if [ -x /usr/sbin/remove-shell ] && [ -f /etc/shells ]; then
+ /usr/sbin/remove-shell /bin/bash
+ /usr/sbin/remove-shell /bin/rbash
+fi
+
+#DEBHELPER#
+
+exit 0