summaryrefslogtreecommitdiff
path: root/debian/bash.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/bash.prerm')
-rw-r--r--debian/bash.prerm24
1 files changed, 19 insertions, 5 deletions
diff --git a/debian/bash.prerm b/debian/bash.prerm
index abd2eb0..52052a2 100644
--- a/debian/bash.prerm
+++ b/debian/bash.prerm
@@ -1,8 +1,22 @@
-#! /bin/bash -e
+#! /bin/bash
-if [ $1 != "upgrade" ]; then
- update-alternatives --remove builtins.7.gz \
- /usr/share/man/man7/bash-builtins.7.gz
-fi
+set -e
+
+case "$1" in
+ upgrade)
+ update-alternatives --remove builtins.7.gz \
+ /usr/share/man/man7/bash-builtins.7.gz
+ ;;
+
+ remove|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
#DEBHELPER#